How to convert "MM yyyy" or "MMMM dd yyyy" into Datetime?

I have a generic value of “dd yyyy” and sometimes a “MMMM dd yyyy” that I want to convert into a datetime. something like this “MM/dd/yyyy 00:00:00”

Hi @wdescalsota

Please try convert.todatetime(your date).tostring(“MM/dd/yyyy”)


cdate(your date).tostring(“MM/dd/yyyy”)

1 Like

Thank you, issue resolved

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.