Skip to main content
Level 9
Jul 18, 2023 8:39 PM UTC
Solved

Convert text to date in Fusion variable

Hi Fusion community,

Does anyone know if it's possible to convert a text value (10/1/2023) to a date, and then format it to be MM-YYYY?  Looking to do this in Fusion, but having trouble with my Set Variable module.

 

Thanks,

Nick

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
ChrisStephens
ChrisStephensAccepted solution
Community Advisor
Jul 19, 2023 5:24 PM UTC

I'm unable to test this, but does formatDate(parseDate(10/1/2023;DD/MM/YYYY);MM-YYYY) work?

3 replies

ChrisStephens
Community Advisor
ChrisStephensCommunity AdvisorAccepted solution
Community Advisor
Jul 19, 2023 5:24 PM UTC

I'm unable to test this, but does formatDate(parseDate(10/1/2023;DD/MM/YYYY);MM-YYYY) work?

Translate
ChrisStephens
Community Advisor
Community Advisor
Jul 19, 2023 7:04 PM UTC

Tested, that should work.

Translate
NickVa7Author
Level 9
Jul 20, 2023 8:05 PM UTC

Wonderful, thanks Chris!!

Translate