SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Date

  1. #1
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Date

    Hey

    How is the date function used?

    Specifically, on my database app I need people to only be able to insert into the db if the date they have selected is beyond todays date. Does that make sense?

    Presumably I'll need to get todays date, and then reference that with the date they have selected. How do I do this?
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky

  2. #2
    epsilon transition cupid's Avatar
    Join Date
    Aug 2001
    Location
    Kent, Ohio
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's recommended that you browse the PHP manual first.. Here's the description for the date function:

    http://www.php.net/manual/en/function.date.php

    As an example:

    date("m/d/Y") would produce 08/27/2001

    and likewise,

    date("D, M d Y") would produce Mon, Aug 27 2001
    Last edited by cupid; Aug 27, 2001 at 08:42.


Bookmarks

Posting Permissions

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