Jump to content

how to format a date


DataSpy

Recommended Posts

Run it through strtotime to get a timestamp value, then use the date function to format it how you want.  When you run it through strtotime you should check the result to ensure success, incase they enter a date it can't understand or is invalid.

 

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.