Author Topic: [SOLVED]Convert Available data  (Read 1153 times)

flaterik

  • Jr. Member
  • **
  • Posts: 100
[SOLVED]Convert Available data
« 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

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10352
  • VirtueMart Version: 3+
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

flaterik

  • Jr. Member
  • **
  • Posts: 100
Re: Convert Available data
« Reply #2 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

flaterik

  • Jr. Member
  • **
  • Posts: 100
Re: [SOLVED]Convert Available data
« Reply #3 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));