9 Replies Latest reply on Apr 4, 2012 11:37 AM by DKinsley

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

    DKinsley Level 1

      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() );