...

View Full Version : Javascript date function



iamazmat
12-03-2012, 10:59 PM
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...

Old Pedant
12-03-2012, 11:28 PM
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/docs/JavaScript/Reference/Global_Objects/Date
http://www.w3schools.com/jsref/jsref_obj_date.asp



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum