Date not recognised

I want to change this format

image

to this format :

But i have this error :
image

1 Like

your parse format has to handle 4 digit year

Hey @Soudios

Just update your statement - dd/MM/yyyy in the second arg of your DateTime.ParseExact

DateTime.ParseExact(in_Date_dembauche, "MM/dd/yyyy hh:mm:ss", Syatem.Globalization.CultureInfo.InvariantCulture).ToString("dd/MM/yy")

Hope this helps

Thanks
#nK