Results 1 to 2 of 2

Thread: PHP5 Date problem

  1. #1

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    PHP5 Date problem

    is there a special way of handling date in PHP5?

    in PHP4.4.1, if i have this 03/17/2004 and format it with the strtotime() function, it outputs something like Monday, March 17, 2004 but when i switched to PHP5 the same date format will output some date in 1969.

    pls note that date format is mm/dd/yyyy

    what do i do?
    Last edited by modpluz; Aug 28th, 2006 at 01:55 PM.
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: PHP5 Date problem

    Works fine for me:
    http://webloc.windmuehlgasse.getdesigned.at/test.php
    Code:
    echo date('l dS F Y h:i:s A', strtotime('03/17/2004'));
    PHP 5.1.4
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width