VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: flaterik on July 10, 2012, 12:59:16 PM

Title: [SOLVED]Convert Available data
Post by: flaterik on July 10, 2012, 12:59:16 PM
Hi, on my shop i put the available data

But this field is in this format yyyy:mm:dd hh:mm

I need only dd:mm:yyyy

How i can convert it?

Thank you
Title: Re: Convert Available data
Post by: PRO on July 10, 2012, 15:08:11 PM
http://www.joomlashack.com/tutorials/505-changing-joomlas-date-format-to-american-format
Title: Re: Convert Available data
Post by: flaterik on July 10, 2012, 16:38:23 PM
Not the solution. I must change only the Available date format.

In Virtuemart administration this data is formatted  yymmdd but only on Available Data. On the rest are good
Title: Re: [SOLVED]Convert Available data
Post by: flaterik on July 10, 2012, 16:44:23 PM
Solved

Used this function

$originalDate = $this->product->product_available_date;
$newDate = date("d-m-Y", strtotime($originalDate));