Question : easy question

I have this code and not giving me date format correctly...

txt1.Text = String.Format("{0:MM/dd/yyyy}", reader["date"].ToString());

Answer : easy question

Yes you can use any format because the variable is now a datetime.
Check:
http://www.csharp-examples.net/string-format-datetime/

Glad I solved your issue.
Random Solutions  
 
programming4us programming4us