Vine Type Content Management with Standards in Mind

19 Oct 2005


  • $time_format
  • textual
associated template variable

This variable specifies the formatting of dates and times on your Vine Type website.

valid values:
  • d [Short date pattern]
  • D [Long date pattern] (default)
  • t [Short time pattern]
  • T [Long time pattern]
  • f [Full date/time pattern (short time)]
  • F [Full date/time pattern (long time)]
  • g [General date/time pattern (short time)]
  • G [General date/time pattern (long time)]
  • m [Month day pattern (same as M)]
  • M [Month day pattern (same as m)]
  • r [RFC1123 pattern (same as R)]
  • R [RFC1123 pattern (same as r)]
  • s [Sortable date/time pattern; conforms to ISO 8601]
  • u [Universal sortable date/time pattern]
  • U [Universal sortable date/time pattern]
  • y [Year month pattern (same as Y)]
  • Y [Year month pattern (same as y)]

The actual display of dates and times depends on both this $time\_format value and the $culture value. Some cultures show months before dates and some show dates before months. Some show AM PM values others display in 24-hour clocks.

Example Date Formats for En-Us Culture

d     1/3/2002
D     Thursday, January 03, 2002
f     Thursday, January 03, 2002 12:00 AM
F     Thursday, January 03, 2002 12:00:00 AM
g     1/3/2002 12:00 AM
G     1/3/2002 12:00:00 AM
m     January 03
M     January 03
r     Thu, 03 Jan 2002 00:00:00 GMT
R     Thu, 03 Jan 2002 00:00:00 GMT
s     2002-01-03T00:00:00
t     12:00 AM
T     12:00:00 AM
u     2002-01-03 00:00:00Z
U     Thursday, January 03, 2002 8:00:00 AM
y     January, 2002
Y     January, 2002


Visit the Download Area to test drive the standard in standards compliance.


Add professional features to your Vine Type site by purchasing a Vine Type Pro license.


Discuss Vine Type or pose questions at the official Vine Type Forum hosted by ASP Advice.

about us

Learn more about this site and the features it is demonstrating.

© 2001-2019 vine branches — website powered by vine type