PHP:: Pre-1970 Dates:: Solution Simple Weird One
=================================================================
SOLUTION : [ Weird one but worked...]
==================================================================
#1. Solution WORKED:-
Input date: 1/1/1900
Output desired as inserted in database : 1900-01-01
Step #1. Exploded the input date to a array.
Step #2. Formed a needed format variable($timestamp) from the array
Step #3. Just to make sure cast as ‘String’ : ( String ) $timestamp
Inserted to the datebase , and the date type field holds the date correctly and the way expected.
==========================================================================
Loading...
Almostbob helped me with this resource link:
========================================
Addon library
========================================
http://phplens.com/phpeverywhere/node/view/16
saffrongeek - September 5, 2009 at 1:20 pm
[...] PHP:: Pre-1970 Dates:: Solution Simple Weird One « Saffrongeek's … [...]
Traffic School - You Can’t Attend for Highway Hypnosis | Traffic Schools - September 21, 2009 at 7:47 am