Hey Guys
I've got the datepicker setup on a page and I want to set a <p> tag to the current date when the page loads but I'm having some trouble getting it working. I've setup the onSelect Event to change the contents of the <p> tag to show the date from what ever day was clicked on, this works great and is formatted as D, d M yy:
Mon, 20 Apr 2009
I've tried using the getDate method which does get the current date but I can't seem to format this to D, d M yy. Instead it displays:
Mon Apr 20 2009 00:00:00 GMT+0100 (GMT Daylight Time)
Can anyone offer any suggestions?
I've got the datepicker setup on a page and I want to set a <p> tag to the current date when the page loads but I'm having some trouble getting it working. I've setup the onSelect Event to change the contents of the <p> tag to show the date from what ever day was clicked on, this works great and is formatted as D, d M yy:
Mon, 20 Apr 2009
I've tried using the getDate method which does get the current date but I can't seem to format this to D, d M yy. Instead it displays:
Mon Apr 20 2009 00:00:00 GMT+0100 (GMT Daylight Time)
Can anyone offer any suggestions?