On 4/7/06, mazdotnet <[EMAIL PROTECTED]> wrote:
the 'Fri Apr 7 13:19:35 EDT 2006' format doesn't work
since
alert(inDate);
alert("Hour:" + inDate.getHours()); -> 13
alert("Year:" + inDate.getYear()); -> 2006
alert("Month:" + inDate.getMonth()); -> 3
alert("Day:" + inDate.getDay()); -> 5
both getMonth and getDay aren't valid. Any idea?
alert("Month: " + inDate.getMonth() + 1) // add 1 bec _javascript_ month (0-11) 0 = january
alert("Day: " + inDate.getDate() ) // use getDate()
Thanks
Maz
Sr. .Net Developer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---
- [ajaxpro] Re: JavaScript date and time parsin... INeedADip
- [ajaxpro] Re: JavaScript date and time p... Michael Lafayette A. Ventura
- [ajaxpro] Re: JavaScript date and ti... mazdotnet
- [ajaxpro] Re: JavaScript date an... Michael Lafayette A. Ventura
