CultureInfo.InvariantCulture is Empty

Hello, I have a project that was working perfectly fine until today.
Suddenly it doesn’t recognize a date time format (dd/mm/yyyy) and therefore the DateTime.Parse stopped working.
I know that I can specify with ParseExact, but I was wondering why did it suddenly not working? can anyone help me out finding how to set the default CultureInfo or am I even missing the point?

Thanks in advance,

@itaim,

Try this way.

DateTime.ParseExact("19/09/2024","MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture)

Thanks,
Ashok :slight_smile:

System received windows update ?
@itaim

I didnt see any updates but I’m pretty sure it’s IT related I guess, how can I manually re-set to the cultureinfo I want? It’s suppose to be empty?

Please read my post, I know the code solution.

Not sure
System settings or see if any kind of system scheduled task are there in task scheduler
Might be

Hi,

Basically, DateTime.Parse(inputString) doesn’t accept dd/MM/yyyy format in UiPath.
So. can you share your exact expression and where and how the input string come from?
Is it from excel worksheet? if so. it may be caused by cell format.

Regards,

It was working fine for a while, then one day stopped working with an exception.
I was taking it from a program, does it matter though?