DateTime Error

I am Trying to use Get Row Item But I am Getting the Following Error can Anybody Explain it to me Please

image

Hey!

Try this

str_datetimeVariable = Datetime.ParseExact(Strinput.ToString, "dd/M/yyyy", System.Globalization.CultureInfo.InvariantCulture).ToString("dd/M/yyyy")

Regards,
NaNi

String Was Not Recognized as a valid DateTime

Getting this Error

Hey!

Could you please show me the input date time?

Regards,
NaNi

image

This is my input

Hey!

Try this:

str_datetimeVariable = Datetime.ParseExact(Strinput.ToString, "dd-MM-yyyy", System.Globalization.CultureInfo.InvariantCulture).ToString("dd/MM/yyyy")

Regards,
NaNi

Thank You So Much

1 Like

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