Announcement

Collapse
No announcement yet.

Invalid Date from DateUtil.getCurrentDate('YYYY-MM-dd')

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

  • Invalid Date from DateUtil.getCurrentDate('YYYY-MM-dd')

    Hi,

    DateUtil.getCurrentDate('YYYYMM-dd') is returning '2019-12-30' and '2019-12-31' for System date 2018-12-30 and 2018-12-30, But it is returning proper date for 2018-12-29. Please let me know if you have come across this issue.

    Thanks,
    Krishna.

  • #2
    Use lowercase yyyy

    Comment


    • #3
      Thanks

      Thanks , It worked.

      Comment


      • #4
        Posted a Mirth Minute Helper video on youtube for this issue, hope it helps. Please subscribe to our channel:

        https://youtu.be/BH0kIcRKAPs

        Or, go to the Mirth Connect User Group website:

        https://www.mcug.org in the Help Center section of the site.

        Nextgen also has some details on this topic:

        http://www.mirthcorp.com/community/w...ing+with+Dates

        Comment

        Working...
        X