CalcBuilder Forum

data time

User bsnline 2018-04-05 20:39:53

Hi,
I have to insert a quote date to field "description hihashop"
the code is correct for get date?

$data=DateTime::getTimestamp;
$dataprev=$data->format('d/m/y');

thank you

Moonsoft support 2018-04-06 09:42:08

Hi,
you have the date function you could use directly:

$dataprev=date('d/m/y');

Here official info and examples:

http://php.net/manual/en/function.date.php

Hope this helps, regards

User bsnline 2018-04-06 17:34:29

Okay !
Thank you very much !

...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!
...
CalcBuilder

Create dynamic calculators

Buy now!