Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-03-2012, 10:59 PM   PM User | #1
iamazmat
New to the CF scene

 
Join Date: Dec 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
iamazmat is an unknown quantity at this point
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...
iamazmat is offline   Reply With Quote
Old 12-03-2012, 11:28 PM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,559
Thanks: 62
Thanked 4,056 Times in 4,025 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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.
Old Pedant is online now   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:46 PM.


Advertisement
Log in to turn off these ads.