Jump to content

[SOLVED] newb date question


Andy-H

Recommended Posts

<?php

$ymd = date('Y-m-d');
$time = date('H:i:s');

$exp = explode(":", $time);
$hour = $exp[0] + 5;

$imp = array($hour,$exp[1],$exp[2]);

$his = implode(":", $imp);


$today = $ymd." ".$his;
echo $today;
?>

 

Did it that way, worked anyway lol

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.