Forum Discussion

NAl's avatar
NAl
Contributor
5 years ago
Solved

Set Date to 1st of Current Month

I am trying to get the current date and convert it to the 1st of the current month of the current year. The resulting format should be dd/mm/yyyy SnapLogic doesn’t recognize this expression (even...
  • j_angelevski's avatar
    5 years ago

    Hi @NAl ,
    Try this expression

    Date.now().withDayOfMonth(1).toLocaleDateTimeString({"format": "dd/MM/yyyy"})