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.

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

Advertisements

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

  1. saffrongeek Says:

    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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: