Jump to content

Date conversion help


Vivid Lust

Recommended Posts

shouldnt do this really but ah well:

 

<?php

$date = "1992-08-28"; // starting format

$date2 = strtotime($date); // convert to unix timestamp

echo(date("jS F Y",$date2)); // convert timestamp to a format you specify

?>

 

---

ps you wont learn near as fast/well if its done for you.

Link to comment
https://forums.phpfreaks.com/topic/91581-date-conversion-help/#findComment-469434
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.