I have been working on asp.net 3.5.I want to Convert a DateTime Data from sqldatareader to a String on "dd-MM-yyyy"
Format.
But when I use "dd-MM-yyyy"
formatting parameter as "rdMonthlyLeave["LEAVE_DATE"].ToString("dd-MM-yyyy")"
browser returns compile error as
Compiler Error Message: CS1501: No overload for method 'ToString' takes '1' arguments
Do you have a solution?