date

Converts a timestamp into another date format. The format for this syntax is the same as strftime.

Input

Output

Fri, Jul 17, 15

Input

Output

2015

date works on strings if they contain well-formatted dates:

Input

Output

Mar 14, 16

To get the current time, pass the special word "now" (or "today") to date:

Input

Output

This page was last updated at 2017-06-29 14:45.

Note that the value will be the current time of when the information is displayed.

Got an issue? Or want to submit feedback?
Submit your feedback

Our new Feedback and Issue Tracker is built on GitHub Issues. Just leave your comment below and you can track our team resolve it, or browse issues others have already submitted.

Read how to use the Feedback and Issue Tracker