Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 date time with hours and minutes ?

Author  Topic 

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2008-04-17 : 09:59:05
Hello guys,
how do i process datetime to reflect both hours and minutes ?
Or is this done seperately ?
thanks

  int y = int.Parse(DOB_Year.SelectedValue);
int m = int.Parse(DOB_Month.SelectedValue);
int d = int.Parse(DOB_Day.SelectedValue);
int h = int.Parse(DOB_hour.SelectedValue);
int s = int.Parse(DOB_min.SelectedValue);

DateTime dob7;
dob7 = new DateTime(y, m, d,h,s);
   

- Advertisement -