Announcement

Collapse

Mirth Connect 3.12.0 Released!

Mirth Connect 3.12.0 is now available as an appliance update and on our GitHub page. This release includes database performance improvements, improves visual HL7 representation, message pruning, keystore handling, PDF generation, community contributions, and fixes several security vulnerabilities. This release also contains many improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

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