Formatting date strings in Python

/ Published in: Python
Save to your folder(s)

[date](, [datetime]( and [time]( objects in Python have a [strftime]( method for creating string representations in whatever format you want. (See the strftime link for the strftime syntax.)

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.