Results 1 to 4 of 4

Thread: Format date!!

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Posts
    840

    Resolved Format date!!

    i'm confuse use the date format........anyone can help me?

    let's say i want get 2day date in format (dd-mm-yyyy).............
    Last edited by kenny_oh; Dec 2nd, 2005 at 07:28 PM.

  2. #2
    Lively Member {yak}'s Avatar
    Join Date
    Aug 2005
    Posts
    119

    Re: Format date!!

    Try:
    DATE_FORMAT(now(), '%d - %m - %Y')
    All you have to do is put the date field you want to format in the first parameter

    date time functions
    {yak}

  3. #3
    Frenzied Member sebs's Avatar
    Join Date
    Sep 2000
    Location
    Aylmer,Qc
    Posts
    1,606

    Re: Format date!!

    Yak, this is PHP

    Today's date:

    date("d-m-Y");

    By default date is now, otherwise, the syntax is :

    date ( string format [, int timestamp] )

  4. #4
    Lively Member {yak}'s Avatar
    Join Date
    Aug 2005
    Posts
    119

    Re: Format date!!

    Quote Originally Posted by kenny_oh
    i'm confuse use the date format
    Means mysql to me
    {yak}

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