Add:
var dayOfMotnhJS = ses.getDate(document.sessionWatch.seshTimeOut.value);
Good luck,
Alexander Sicular
Chief Technology Architect
Neurological Institute of New York
Columbia University
as867 [at] columbia {dot} edu
|-----Original Message-----
|From: Ray Bujarski [mailto:[EMAIL PROTECTED]]
|Sent: Thursday, February 21, 2002 5:16 PM
|To: CF-Talk
|Subject: OT Javascript: Date Parsing
|
|
|Does anyone know how to parse the day out of a given date in
|javascript.
|
|I want to do the equivalent of datepart(d, thisDate).
|
|<form name="sessionWatch">
|<cflock scope="SESSION" timeout="3" type="READONLY">
| <cfoutput><input type="hidden" name="seshTimeOut"
|value="#session.timeout#"></cfoutput>
|</cflock>
|</form>
|
|var ses=new Date();
|var yrJS = ses.getYear("yyyy",
|document.sessionWatch.seshTimeOut.value);
|var monJS = ses.getMonth("m", document.sessionWatch.seshTimeOut.value);
|var dJS = ses.getDay("d", document.sessionWatch.seshTimeOut.value);
|var hJS = ses.getHour("h", document.sessionWatch.seshTimeOut.value);
|var nJS = ses.getMinutes("n", document.sessionWatch.seshTimeOut.value);
|var sJS = ses.getSeconds("s", document.sessionWatch.seshTimeOut.value);
|
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists