Getting the now() date in the workflow

:bangbang: Please be sure you’ve read the docs and API specs before asking for help. Also, please be sure you’ve searched the forum for your answer before you create a new topic.

I need the now() date to be retrieved to compare it with the start date. This works perfectly. But the now() date is coming in the UTC format and my date is coming in the AEST format.

{
  "name": "now",
  "description": "Get the current date and format it as ISO8601",
  "transforms": [
    {
      "id": "sp:transform:substring:string",
      "input": {
        "start": 0,
        "length": 10
      }
    }
  ],
  "variableA.$": "$.now()"
}

Hi @KirtiSikarwar, I believe in the Define Variable operator, you can choose the Add Time Date Transform and add 11 hours to $.now() if it is UTC+11 for example.

Hope this helps in your use case.

would Add work? as subtract isnt supported yet

Added the time from operators option to 10 hrs - UTC to AEST

1 Like

I see. How about adding 10 hours first, then only substring to length 10?

2 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.