Jump to content

PHP & SQL Date/Time Handling


Crimpage

Recommended Posts

Hi All,

Just a quick question. When using PHP and returning a Micorosoft SQL datetime field, it always returns it as "September 1 2006 12:00 AM" instead of "09-01-2006 00:00:00" as its stored in the database... I'm hoping its just an option i can change somewhere as I just want it to return the normal value.

Thanks for you help.

David.
Link to comment
https://forums.phpfreaks.com/topic/19314-php-sql-datetime-handling/
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.