Forums / Install & configuration / Formatting Date

Formatting Date

Author Message

Mike Cohen

Monday 10 March 2003 3:10:42 pm

I'm trying to format a date object I've defined in one of my content classes, the date identifier is start_date. The only way I can get the date to display at all is by using:

{attribute_view_gui attribute=$Child:item.object.data_map.start_date}

But this doesn't allow the use of the 'datetime' formating operator, the date displays like '2003.04.17'

Whenever I use:

{$Child:item.object.data_map.start_date.content|datetime(custom,"%m %d %y")}

I get '12 31 69' which makes absolutely no sense to me.

Any help is greatly appreciated,

Mike Cohen