News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[SOLVED]Convert Available data

Started by flaterik, July 10, 2012, 12:59:16 PM

Previous topic - Next topic

flaterik

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


flaterik

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

flaterik

Solved

Used this function

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