Results 1 to 2 of 2

Thread: Date formating

  1. #1
    Join Date
    Jan 2009
    Posts
    124

    Wink Unanswered: Date formating

    This code echos the right date but not in the desired format.
    <?php echo $row_rsYb_memb['Date_Joined']; ?> PRODUCES "Member Since: 2000-06-01"

    When I try to format the date into Month and year using the following code the date is wrong!
    <?php echo date('M Y', strtotime($row_rsYb_memb['Date_Joined'])); ?> Member Since: Dec 1969

    I realize I'm asking a PHP question here but thought someone might point me in the right direction.

    Nick

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    Quote Originally Posted by oldnickj
    ...someone might point me in the right direction.
    i'd be only too happy to do that, nick

    the right direction is ----------> here



    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

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