Announcement

Collapse
No announcement yet.

Time/Date Pattern Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Time/Date Pattern Question

    Are the hours derived from the statement:

    var dateString = DateUtil.getCurrentDate("MM/dd/yyyy hh:mm");

    depicted in 24 hour time or an AM/PM time?

    Can the default be changed from one form to the other?

    Thank you

    Nick

  • #2
    Re:Time/Date Pattern Question

    Sorry for a late reply, but if you try this,

    var dateString = DateUtil.getCurrentDate("MM/dd/yyyy HH:mm:ss");

    it makes it 24 hour,
    vs.

    var dateString = DateUtil.getCurrentDate("MM/dd/yyyy hh:mm:ss");
    which makes it 12 hour.

    The caps of HH or hh determine it.



    nickima wrote:
    Are the hours derived from the statement:

    var dateString = DateUtil.getCurrentDate("MM/dd/yyyy hh:mm");

    depicted in 24 hour time or an AM/PM time?

    Can the default be changed from one form to the other?

    Thank you

    Nick

    Comment

    Working...
    X