Datetime variable issue

0
Hi all,  In one of my microflows an action grabs the year from a date using (CurrentYearInt in variables below).  Then a datetime variable is created to create the 1st April for that year, (create variable on the right of screenshot) You can see in the variables that the CurrentYearInt is ‘2020’. Yet the CurrentYear0104 comes out at 30th December 2019 – it should be 1st April 2020 Any help would be much appreciated. 
asked
1 answers
1

Hi Garion,

Have you tried to use ‘dd-MM-yyyy’ instead of ‘dd-MM-YYYY’ as the date format when parsing the date? This should give you the expected result.

Hope this helps!

answered