In-line handlebar variables for min date in the correct timezone format

Answered

Comments

5 comments

  • Sachin Goud Godishela Software Engineer
    Answer Pro
    Great Answer
    Celigo University Level 4: Legendary

    If you want to use dateAdd, check this comment by Stephen Brandt on how to nest them together.

    1
  • Balasubramanian Mahadevan Community manager Senior Technical Writer
    Engaged
    Celigo University Level 2: Seasoned

    moving this post to the Troubleshoot custom flows section for better visibility for all users who may have this same question.

    0
  • Bas van Ditzhuijzen Strategic Partner NetSuite Integration Whiz Salesforce Integration Whiz
    Partner Implementation Certification
    Great Answer
    Answer Pro
    Engaged
    Celigo University Level 4: Legendary

    If you use Delta Export Type and schedule the flow to run every day Celigo will take care of the calculation and formatting for you :-)  

     

    0
  • Christian Bannard
    Engaged
    Awesome Follow-up

    Sachin Goud Godishela that was of great assistance to get close to the formatting needed, so thankyou for that.

    I additionally needed the timezone included, so the expression ended up being as follows.

    Yesterday (created_at_min)
    {{dateFormat 'YYYY-MM-DD hh:mmZ' (dateAdd (timestamp)  '-86400000') 'YYYY-MM-DD hh:mm' 'Australia/Melbourne' }}

    The day before yesterday (created_at_max)
    {{dateFormat 'YYYY-MM-DD hh:mmZ' (dateAdd (timestamp)  '-86400000') 'YYYY-MM-DD hh:mm' 'Australia/Melbourne' }}

    End result:

    Anyway, it will be helpful for anyone ever needing to create reports between a 24-hour period range.

    Thankyou for your assistance.

    Regards,

     

    Christian

    0
  • Balasubramanian Mahadevan Community manager Senior Technical Writer
    Engaged
    Celigo University Level 2: Seasoned

    Thank you for sharing this information Christian Bannard. This truly will be helpful for other users.

    0

Please sign in to leave a comment.