Results 1 to 2 of 2

Thread: date()?

  1. #1

    Thread Starter
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090

    date()?

    How do you get the current date in yyyy-mm-dd in PHP?
    Have I helped you? Please Rate my posts.

  2. #2
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629
    PHP Code:
    <?=date("Y-m-d");?>
    check out PHP.net's online manual for different uses of the date() function: http://ca3.php.net/manual/en/function.date.php
    Like Archer? Check out some Sterling Archer quotes.

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