Python Programming - Console Input/Output - Discussion
Discussion Forum : Console Input/Output - General Questions (Q.No. 32)
32.
How can you print the current date and time in a specific format?
Answer: Option
Explanation:
To print the current date and time in a specific format, use
strftime("%Y-%m-%d %H:%M:%S")
with the datetime
object.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers