Python Arrow Module: Get string representing the date, controlled by an explicit format string
Write a Python program to get string representing the date, controlled by an explicit format string.
Sample Solution:
Python Code:
Sample Output:
Current datetime: 2019-06-04T07:20:10.079600+00:00 String representing the date, controlled by an explicit format string: 04-06-2019 07:20:10 2019-06-04 07:20:10 2019-04-06 07:20:10
Python Code Editor:
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
Previous: Write a Python program to get the proleptic Gregorian ordinal of a given date.
Next: Write a Python program to get hourly datetime between two hours.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.