<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Supported Date and Time Formats</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.timezone-version-get.html">timezone_version_get</a></div> <div class="next" style="text-align: right; float: right;"><a href="datetime.formats.time.html">Time Formats</a></div> <div class="up"><a href="book.datetime.html">Date/Time</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="datetime.formats" class="chapter"> <h1>Supported Date and Time Formats</h1> <h2>Table of Contents</h2><ul class="chunklist chunklist_chapter"><li><a href="datetime.formats.time.html">Time Formats</a></li><li><a href="datetime.formats.date.html">Date Formats</a></li><li><a href="datetime.formats.compound.html">Compound Formats</a></li><li><a href="datetime.formats.relative.html">Relative Formats</a></li></ul> <p class="para"> This section describes all the different formats that the <span class="function"><a href="function.strtotime.html" class="function">strtotime()</a></span>, <a href="class.datetime.html" class="classname">DateTime</a> and <span class="function"><a href="function.date-create.html" class="function">date_create()</a></span> parser understands. The formats are grouped by section. In most cases formats from different sections can be used in the same date/time string. For each of the supported formats, one or more examples are given, as well as a description for the format. Characters in single quotes in the formats are case-insensitive (<em>'t'</em> could be <em>t</em> or <em>T</em>), characters in double quotes are case-sensitive (<em>"T"</em> is only <em>T</em>). </p> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.timezone-version-get.html">timezone_version_get</a></div> <div class="next" style="text-align: right; float: right;"><a href="datetime.formats.time.html">Time Formats</a></div> <div class="up"><a href="book.datetime.html">Date/Time</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>