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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 22:21:15
Script start
Timing: Jan 30 2025 22:21:15
Module start 'layout'
Timing: Jan 30 2025 22:21:15
Module start 'content'
Timing: Jan 30 2025 22:21:15
Module end 'content'
Timing: Jan 30 2025 22:21:15
Script end

Main resources:

Total runtime0.0287 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.1250151.2109
Module start 'layout' 0.00700.0049 739.3359220.6875
Module start 'content' 0.01190.0149 960.0234993.5859
Module end 'content' 0.02680.0019 1,953.609429.9922
Script end 0.0287  1,983.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002910.2351140.0002
Check MTime0.00124.0179140.0001
Mysql Total
Database connection0.00082.947810.0008
Mysqli_queries0.004314.859630.0014
Looping result0.00000.066510.0000
Template Total0.00134.610.0013
Template load0.00103.436410.0010
Template processing0.00031.188110.0003
Override
Cache load0.00062.257410.0006
General
dbfile0.003210.992080.0004
String conversion0.00000.029940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs