Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript date function

    Hi Helpful guys,

    I have to achive following...

    to check if month of a given date is -1 of current dates month. i e. its of previous month...

    secondly if the current date is between 1st, 2nd, 3rd, 4th, 5th 6th or 7th of this month...

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,901
    Thanks
    79
    Thanked 4,423 Times in 4,388 Posts
    So is this homework?

    If so, what have you tried so far?

    Have you looked at places such as
    https://developer.mozilla.org/en-US/...l_Objects/Date
    http://www.w3schools.com/jsref/jsref_obj_date.asp
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

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