Skip to main content

How can I concatenate a fixed Day to a Date

  • January 17, 2019
  • 2 replies
  • 20 views

Hi, Need some help.

DATETIME_FORMAT(DATEADD({Date},{NumberMonths},‘month’),‘YYYY-MM’)

example:
Date = Jan 1, 2019
NumberMonths = 3

the result is 2019-04

if I have a value in the record table like
Day = 25

I want the result to be 2019-04-25
This is for a payment table that reminds me to pay on the 25th of the 3rd month from Jan. 1st.

Thanks

2 replies

Kamille_Parks11
Forum|alt.badge.img+27

try DATETIME_FORMAT(DATEADD({Date},{NumberMonths},‘month’),‘YYYY-MM’)&"-"&{Day}


  • Author
  • New Participant
  • January 18, 2019

try DATETIME_FORMAT(DATEADD({Date},{NumberMonths},‘month’),‘YYYY-MM’)&"-"&{Day}


Thank you so much.
It worked perfect.

Had to add an “s” for months.

DATETIME_FORMAT(DATEADD({Date},{NumberMonths},‘months’),‘YYYY-MM’)&"-"&{Day}