displaying date format
-
Hi, I'm getting date from SQL table, where it is saved as 7/31/2007 12:00:00 AM I need to show this date as July, 31 2007 without the time. is there any easy way to do that? thanks
Usually its safest to use the ISO date standard, so yyyy-MM-dd. In your case, that would be 2007-31-07 and I'm pretty sure the 7 has to be preceded by a 0 for it to work properly, let alone for any single-digit number in the date.
-
Usually its safest to use the ISO date standard, so yyyy-MM-dd. In your case, that would be 2007-31-07 and I'm pretty sure the 7 has to be preceded by a 0 for it to work properly, let alone for any single-digit number in the date.
-
Hi, I'm getting date from SQL table, where it is saved as 7/31/2007 12:00:00 AM I need to show this date as July, 31 2007 without the time. is there any easy way to do that? thanks
-
Hi, I'm getting date from SQL table, where it is saved as 7/31/2007 12:00:00 AM I need to show this date as July, 31 2007 without the time. is there any easy way to do that? thanks
hi try this code string a a = your date from sqlserver label.text = DateTime.Parse(a).ToLongDateString(); and let me know Bhanu
-
Hi, I'm getting date from SQL table, where it is saved as 7/31/2007 12:00:00 AM I need to show this date as July, 31 2007 without the time. is there any easy way to do that? thanks
yourDate.ToShortDateString() use this . Hope this will also help you.
SSK. Anyone who says sunshine brings happiness has never danced in the rain.