Comparison using one of the "date" formatting codes

Discussion in 'PHP' started by SeriousNovice, Aug 23, 2008.

  1. #1
    Good day -

    I know that I can get the number of the day of the week from the current date (Sunday=0, Monday=1 and so on). I would like to use that number in an error-checking routine. Is it possible to turn the number of the day of the week into a variable that I can then use to compare against another value?

    Thanks in advance for your help.


    Steve E.
     
    SeriousNovice, Aug 23, 2008 IP
  2. NatalicWolf

    NatalicWolf Peon

    Messages:
    262
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    NatalicWolf, Aug 23, 2008 IP
  3. SeriousNovice

    SeriousNovice Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well, I shoulda thought of that...guess I was looking for something more complicated! Thank you.


    Steve E.
     
    SeriousNovice, Aug 23, 2008 IP
  4. NatalicWolf

    NatalicWolf Peon

    Messages:
    262
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Glad that worked for you. If not too much trouble, give me a reputation point. Its the scale on the right of my name.
     
    NatalicWolf, Aug 23, 2008 IP