datatable
-
I have a DateTime variable. DateTime dt; I want to enter first date value. ( date = "1/1/2004" ) dt = date; then I want to enter time value.(time = "5:AM" ) dt += time; How can I achieve this. Thank you very much. Suds ====== You need a head to program. Cool, fast and sharp.
-
I have a DateTime variable. DateTime dt; I want to enter first date value. ( date = "1/1/2004" ) dt = date; then I want to enter time value.(time = "5:AM" ) dt += time; How can I achieve this. Thank you very much. Suds ====== You need a head to program. Cool, fast and sharp.
you could try DateTime dt = new DateTime(int Year, int Month, int Date, int hour, int minute, int second, int millisecond); in ur case DateTime dt = new DateTime(2004,1,1,5,0,0,0,0); Tarakeshwar CCIE Q(Routing and Switching), MCSE Security
-
I have a DateTime variable. DateTime dt; I want to enter first date value. ( date = "1/1/2004" ) dt = date; then I want to enter time value.(time = "5:AM" ) dt += time; How can I achieve this. Thank you very much. Suds ====== You need a head to program. Cool, fast and sharp.
You can do like this dt = new DateTime(dt.Year, dt.Month, dt.Day, 5, 0, 0);