Re: [flexcoders] Todays date without the Time

2007-01-13 Thread Ralf Bokelberg
I would simply set it to zero using the setters for hour, minute, second, millisecond Cheers, Ralf. On 1/12/07, boy_trike [EMAIL PROTECTED] wrote: using: var X : Date = new Date(); returns the current date and time. What is the easiest way to just get the date (with the time set to

Re: [flexcoders] Todays date without the Time

2007-01-13 Thread Valy Sivec
see setHours method of a date object. It should be something link that date.setHours(0,0,0,0); regards, valy - Original Message From: Ralf Bokelberg [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, January 13, 2007 6:21:22 AM Subject: Re: [flexcoders] Todays date

[flexcoders] Todays date without the Time

2007-01-12 Thread boy_trike
using: var X : Date = new Date(); returns the current date and time. What is the easiest way to just get the date (with the time set to midnight). thanks Bruce