Skip to main content
CalcBuilder logo
CalcBuilder Forum

data time

User bsnline

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

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

Okay !
Thank you very much !

...
List Manager

Build different lists for your site

Buy now!
...
CalcBuilder

Create dynamic calculators

Buy now!