Last post Jul 30, 2008 04:07 PM by kirilminev
Jul 30, 2008 01:40 PM|kirilminev|LINK
I have to date fields coming from a DataTable object and they both represent date objects.
I need to take the time value from one of them and the date value from the other one and combine them to one date object.
Can anyone help me with comming up with couple lines of code.
Date) dateObj = Date.Parse(dr.Item("Exch Date").ToString(), formaterA)
Time) timeObj = DateTime.Parse(dr.Item("Time Sent").ToString())
dateTimeObj = the date from date and the time from time
Jul 30, 2008 02:33 PM|Jeev|LINK
dateTimeObj =new DateTime(dateobj.Year, dateobj.Month, dateobj.Day, timeObj.Hour, timeObj.Minute, timeobj.Second)
Jul 30, 2008 04:06 PM|kirilminev|LINK
Jul 30, 2008 04:07 PM|kirilminev|LINK