S
Shikari Shambu
I have DateOfBirth declared as
DateTime? DateOfBirth;
DateOfBirth.ToSTring("yyyyMMdd");
gives an error - no overload method ToString() takes 1 arguments.
However, if I were to declare DateOfBirth as
DateTime DateOfBirth;
this works without an error.
How do I get the formatting to work on the nullable DateTime I.e DateTime?
DateOfBirth;
TIA
DateTime? DateOfBirth;
DateOfBirth.ToSTring("yyyyMMdd");
gives an error - no overload method ToString() takes 1 arguments.
However, if I were to declare DateOfBirth as
DateTime DateOfBirth;
this works without an error.
How do I get the formatting to work on the nullable DateTime I.e DateTime?
DateOfBirth;
TIA