kortovos
20 Sep 2010, 11:13 PM
Is there a way to format a date in the tpl? I have a store with a attribute 'dueDate' which is a date, but I don't want to display the entire date (date + time + timezone) in the list which uses the store, just the date (day, month, year). Below is an example of the tpl I mean.
tpl : '<tpl for="."><div class="car"><tpl if="carColor"><div class="car_img" style="background-image: url(resources/{carColor}.jpg);"></div></tpl><h1>{licensePlate}</h1><h2>{carDescription}</h2><div class="details"><div class="dueDate">{dueDate}</div><div class="place">{place}</div></div></div></tpl>',
tpl : '<tpl for="."><div class="car"><tpl if="carColor"><div class="car_img" style="background-image: url(resources/{carColor}.jpg);"></div></tpl><h1>{licensePlate}</h1><h2>{carDescription}</h2><div class="details"><div class="dueDate">{dueDate}</div><div class="place">{place}</div></div></div></tpl>',