Jump to content

[SOLVED] Help php date()


Lautarox

Recommended Posts

How can i input a variable in the date function? i want to do something like this

 

$arrtime['date'] //equals to d/m/Y or whatever and $arr['fecha'] to a saved time ()
$date = date("$arrtime['date']",$arr['fecha']);

And, what about somthing like this
the last $arrtime['date'], plus $arrtime['time'] var that contains G:i:s
$date = date("$arrtime['date'] '$arrtime['time']'",$arr['fecha']);

 

Any help?

Thanks

Link to comment
https://forums.phpfreaks.com/topic/112961-solved-help-php-date/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.