Jump to content

Getting started with timestamps.....


legohead6

Recommended Posts

simple
to capture current timestamp
$variable = time();
to capture the current date
or date from a time stape
$variable = date("formathere");
check php.net for formats
if you want to change a time stamp into date format
$variable = date("formathere", $variable); // the variable would contain the time stamp.

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.