Datetime convert error

I am facing the errror : String was not recognized as a valid Date Time

I have checked the value from datatable is there

Hava a look at least at the first part which helps on further analysis steps

not working…i tried it

its about the analysis in the first step

  • please share with us the samples from the dates from immediate panel
  • please share with us the analysis of all non parseable values from the immediate panel

thanks

Hi @Ritaman_Baral ,

Is the Value from the Datatable dates value in the format of yyyy-MM-dd ?

Then, I believe you would need to correct the format that you have specified in the DateTime.ParseExact() method. (notice the small mm used in your expression)

However, If it is not of the format that you have specified, then you would need to change the format accordingly as present/retrieved from the Datatable.

The value may be there, but it doesn’t fit the yyyy-mm-dd format probably because mm is minutes, while MM is month. Change it to yyyy-MM-dd, and make sure that’s the exact format of the value, that it doesn’t have a time on it or a single digit month (M) or day (d).