JavaScript Forum JS Made Easy: Free JavaScripts Tutorials Example Code
About This Product
FontsMadeEasy.com
 
The Business Internet
Find it on This page:
 
| Over 5000 Free Fonts | Tutorials | Javascript Forum | Other Javascript Resources | Cheat Sheet

     
Jsmadeeasy Forums Home   Search   Login   Register   Member List  
JS Made Easy  > JavaScript programming  > Date issues  
 
Display using:  
Previous Thread :: Next Thread 
 Author Thread: Date issues
qsaaiman is not online. Last active: 5/30/2006 4:23:08 AM qsaaiman
Top 25 Poster
Joined: 28 Jul 2004
Total Posts: 21
 
Date issues
Posted: 20 May 2002 02:32 AM
Greetings.

Having trouble with dates, any help will be appriciated.

Scenario:
I have 2 text boxes. One is for date to, the other is for date from. When a date is selected the date to should show the last day of that week (Saterday) & date from should show the first day of the week (Sunday).

Problem:
When the first day of the month is on a wednesday it gives me a date that look like this : 2002/05/0-2. It should actually read : 2002/04/28.

When the last day of the month is on a friday it gives me a date that look like this : 2002/05/32.It should actually read : 2002/06/01.

Request:
Any ideas on how to fix this? I think that the setDate() method is the way to go, but the documentation I have is useless on this method.

Thanx in advance

Quintin Saaiman
Department of Labour
IT Systems

Quintin Saaiman
Previous Thread :: Next Thread 
Page 1 of 1
 
Jsmadeeasy.com  > JS Made Easy  > JavaScript programming  > Date issues