-3

I have a string (data with hours and seconds = "2020-02-02T11:00:00Z") and I am trying to convert it to custom format (20200201_110000).

Can someone is there any built in function in python (like calendar in Java) which will help me with this ?

Thanks

user3407267
  • 1,524
  • 9
  • 30
  • 57
  • 3
    https://docs.python.org/2/library/datetime.html – JacobIRR Feb 03 '20 at 22:43
  • 1
    If you search in your browser for "Python datetime tutorial", you'll find references that can explain this much better than we can manage here. – Prune Feb 03 '20 at 22:46
  • 1
    What is the issue, exactly? Have you tried anything, done any research? – AMC Feb 03 '20 at 22:50

1 Answers1