ParseExact Returns : Assign: Object reference not set to an instance of an object

Dears,
ParseExact Returns : Assign: Object reference not set to an instance of an object.


Knowing that, it was working properly. Thanks in Advance

@hsendel Check DatesColumn variable value now its having null value so you are getting error

Do you mean default value? If so, what should be it’s value?

@hsendel From where you are getting this values can you elaborate more on this

From Excel file having the following Date/Time:

image

@hsendel

Before doing this assignment, print the value of DatesColumn and see once.

1 Like

@hsendel Refer This xaml

Hi Again,
Seems the issue is due to one empty cell ( without Date/Time), after inserting one value it works.


By the way how to check if empty than fill it with some value?

1 Like

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