Skip navigation
Currently Being Moderated

Current time and date with AM/PM - not military time.

Apr 2, 2012 12:04 PM

I need to display the current date and time in a textfield that is dynamicaly created. I do not want that time or date to change (remains the same as long as that field stays displayed and the form is saved.) I need it in the following format: Monday, 4/02/2012, 3:03 PM

 

I have the following javascript that works but lacks the format and some info needed listed above: (AM/PM day of the week)

 

this.rawValue = util.printd("mm/dd/yy - h:MM ", new Date() );

 

 

 

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points