[Javascript] help me out pls.
Sanjeev J Singh
ssingh at emind.com
Tue Oct 19 08:32:03 CDT 2004
Use new Date() method.
if
day = 19
month = 10
year = 2004
then you will have:
var mydate = new Date(year.parseInt(), month.parseInt() -1, day.parseInt());
if
day = 19
month = Oct
year = 2004
then concatenate them to a string such as
var date_string = month + day +", "+year;
then you will have:
var mydate = new Date(date_string);
You can then use mydate in date calculations.
-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu]On Behalf Of seema varshney
Sent: Tuesday, October 19, 2004 1:49 PM
To: javascript at LaTech.edu
Subject: [Javascript] help me out pls.
sir/mam
kindly help me out my problem
i unable to club date from form
pls. send code to me
comparing dates from system date & inputing from form
i unable to get logic how we collect three (dae, month,year) entries into
single variable & then compare we make single variable for system clock by
making object.
pls. help me
SEEMA
----------------------------------------------------------------------------
--
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20041019/cd51ebd3/attachment.htm>
More information about the Javascript
mailing list