DateTime.ParseExact compile time error

Hey Everyone,

I am facing the below issue. I don’t know why it is occurring so?
For parsing i am using “DateTime.ParseExac(item,“dd.MM.yyyy”,nothing)”
Your advise is much appreciable.


Thank you

show us the screenshot of error that you are getting…

@nashrahkhan

Check as below
Convert Date & Time Format Tutorial

Hope this helps you
Follow MyChannel

Thanks

@nashrahkhan
ensure following:

  • for each activitiy - the typeargument is set to string
  • System.Globalization is imported:
    grafik

then try with:
DateTime.ParseExact(item,“dd.MM.yyyy”,CultureInfo.InvariantCulture)

@Srini84 @AkshaySandhu @ppr
Thank you for your feedback. it is a compile-time error because of parameters mismatching. I dry run it and finally resolved that by converting TempData Object into the string.

1 Like

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