Forums / Developer / How do I change the date _datatype_ format?

How do I change the date _datatype_ format?

Author Message

Sander Jansen

Friday 22 August 2003 7:56:57 am

How do I change the date format on a date object used in a certain class? i.e I have a $content_version.data_map.date, and I use the attribute_view_gui to show it, but it shows year.month.day and I want it to show day-month-year...

string handlers don't work here

Jan Borsodi

Thursday 28 August 2003 5:37:25 am

You can create an override for the template
design/standard/templates/content/datatype/view/ezdate.tpl
which controls the look of the datatype.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

eZ debug

Timing: Jan 30 2025 22:23:31
Script start
Timing: Jan 30 2025 22:23:31
Module start 'content'
Timing: Jan 30 2025 22:23:31
Module end 'content'
Timing: Jan 30 2025 22:23:31
Script end

Main resources:

Total runtime0.0212 sec
Peak memory usage6,144.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.2656370.2734
Module start 'content' 0.00700.0108 958.53911,001.5781
Module end 'content' 0.01780.0033 1,960.117270.7031
Script end 0.0211  2,030.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002411.1926120.0002
Check MTime0.00104.7886120.0001
Mysql Total
Database connection0.00073.085610.0007
Mysqli_queries0.002813.237640.0007
Looping result0.00000.050620.0000
Template Total0.002913.810.0029
Template load0.00094.067610.0009
Template processing0.00219.748310.0021
Override
Cache load0.00073.091210.0007
General
dbfile0.00021.0911100.0000
String conversion0.00000.018030.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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