Saffrongeek’s Diarylog
…..memoirs moments opened…

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.

==========================================================================

2 Responses to “PHP:: Pre-1970 Dates:: Solution Simple Weird One”

  1. Almostbob helped me with this resource link:

    ========================================
    Addon library
    ========================================
    http://phplens.com/phpeverywhere/node/view/16

  2. [...] PHP:: Pre-1970 Dates:: Solution Simple Weird One « Saffrongeek's … [...]


Leave a Reply