How to convert String to Datetime when the string is formatted in European date format

Hello friends,
small issue here. Im trying to extract a date out of the ERP system we are using.
This date is formated like dd/MM/yyyy. So what I do is I extract this date as a string.
But I need this date in a datetime variable. So I use convert.todatetime(String) But now comes the issue
datetime sees the date as MM/dd/yyyy but I need it to be as dd/MM/yyyy
How to solve this issue?

Kind regards

hope this expression would help you
str_input = “dd/MM/yyyy”
date_output = Datetime.ParseExact(str_input,“dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture)

where date_output is a variable of type datetime

Cheers @Peter_Peter


Thanks Robot Master

Cheers @Peter_Peter

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