Python Interview Questions on Datetime

python interview question on date time

Question 1: Which module is used to print current datetime in python?

Question 2: Write a Python Script to display current date and time.

Question 3: Write a python script to display current month and year?

Question 4: Write a python script to subtract n days from current date?

Question 5: Write a python script to print yesterday date,today’s date and tomorrow’s date.

Question 6: Write a python script to print current weeknumber of the year?

Question 7: Write a script in python to count number of days b/w 2 dates?

Question 8: WAP to get GMT(Greenwich Mean Time) in python?

Question 9: WAP to convert a date to timestamp?

1 Trackback / Pingback

  1. Python Interview Questions on Dictionaries - Language Forest

Leave a Reply

Your email address will not be published.


*