Jump to content

Cant store a date before 12/31/69


jeff5656

Recommended Posts

I have a date of birth field:

If I enter a dte before 12/31/69, for instance 12/1/55:

 

When I do this

 

$_POST['dob']

 

I get 12/1/55, but when I do this:

$dob = date("Y-m-d", strtotime($_POST['dob']));
echo "dob is ".$dob;

I get 12/31/69.  Can mysql not store dates before 1969?

 

 

Link to comment
https://forums.phpfreaks.com/topic/182196-cant-store-a-date-before-123169/
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.