Back to All

Date (year) variable

How is it possible to convey the information of a variable to the start date.
Now I give it manually.

STARTDATE = #date(StartYear,01,01),
headers = [#"Content-Type" = "application/json", #"ApiKey"="xxxxxxxx"],
postData = "{ #(cr)#(lf)#(tab)""NickName"" : ""12345678"",#(lf)#(tab)""StartDate"" : ""2022-05-01T00:00:00"",
response = Web.Contents(url, [Headers = headers, Content = Text.ToBinary(postData)]),

Thanks for the help/Pekka