Yes, the strftime() method returns a string representing date and time using date, time or datetime object.