Date and Time Format Converter

Q

How to convert a date and time to a standard format?

Date and time can be displayed in a number of standard formats. For example, "2030-12-19T01:37:56+01:00" is the ISO 8601 format, and "Tue, 21 Feb 2040 23:05:38 +0100" is the RFC 2822 format.

FYIcenter.com has designed this online tool for you to convert a given data and time to different standard formats or your own custom formats. All you need to do is to enter your data and time, select a format and click the "Convert" button. The converted date and time will be displayed in the result area.


Date & time:
Format:
   

✍: FYIcenter.com

A

Conversion result by FYIcenter.com:

Formatted date and time:

Date and time formatting codes

This date and time format converting tool uses the PHP DateTimeInterface interface, which supports the following commonly used formatting codes:

Y - Year in 4 digits like 1999 or 2003
m - Month in 2 digits like 01 or 12
M - Month in 3 letters like Jan or Dec 
F - Month in full words like January or December
d - Day of the month in 2 digits like 01 or 31
D - Day of the week in 3 letters like Mon or Sun 
l - Day of the week in full words like Monday or Sunday
h - Hour in 12-hour format like 01 or 12 
H - Hour in 24-hour format like 00 or 23 
i - Minute in 2 digits like 00 or 59
s - Second in 2 digits like 00 or 59
T - Timezone like EST or MDT
O - Difference to Greenwich time like +0200 

To learn more about date and time formatting, visit the date() function Website.

 

Date and Time Duration Calculator

Date and Time Tools

Date and Time Tools

⇑⇑ Online Tools

2023-11-02, 240377🔥, 2💬