Python example: datetime format
Python datetime format example
Parses a timestamp string with datetime.strptime() using a matching format pattern, then prints it with strftime() in a friendlier form. It teaches the difference between parsing string input and formatting a datetime object for display.