Convert string to DateTime variable

Hi guys,

How can I convert a string with format “27 Nov 2022” into a DateTime variable? Or is it possible?

Best regards,
Marcus

Hey! Welcome to community.

In this case just do like this

Assign DateTimeVar = CDate(inputDateVar).ToString("dd MMM yyyy)

Try this and let me know

Regards,
NaNi

if that is a string you can assign like this

datetime variable = DateTime.Parse(“27 Nov 2022”)

Hi @marcus_sze

Welcome to community,

Please have a look to get complete understanding on how it works,

UiPath - Convert String to DateTime (finessetalks.com)

Thanks

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