Prasant Jinaga

Prasant Jinaga

  • 1k
  • 751
  • 425.1k

Convert Datetime? property value to string format

Aug 16 2012 9:15 AM
Hi,

I have a property in a class with datatype Datetime?
for ex:
int Datetime? test;

Now i want to convert this test to "mm/dd/yyyy" format

I tried with .Tostring("mm/dd/yyyy") its not working.
it says an error
No overload for method ''Tostring" takes 1 argument.

Do anyone faced this problem before???

Thanks,
Prasant

Answers (3)