Microsoft
Software
Hardware
Network
Question : working with dreaded time values in vb.net
Hi. I am working at a project which involves times values.
There is this database that stores Time`s data type. I have a form with a control datetimepicker.
what I need is the following:
To compare the value stored in the database in a Time column versus the value stored in the datetimepicker control.
I am working ONLY with hours (HH:mm:ss). The problem is that almost every solution that I`ve found in the Internet shows only how to get rid of the time values when working with datetime types. I haven`t found any that explains how to get the difference of minutes, or seconds, or hours that exist in two different times.
Any one?
Answer : working with dreaded time values in vb.net
Yes...if you set the dates the same first then the subtraction will give you a TimeSpan that represents just the time difference.
Random Solutions
Windows 7 Enterprise vs Ultimate?
How do I "PROPER" Addresses on excel 2010?
Best way to "reimage" office computers so that they all have same OS
can't change password through OWA 2010
"Include inheritable permissions from this object's parent" is gey out in Windows 2008
Auto start and mount RAID array Linux
Can WordPress be customized to some degree by manipulating files embeded in the WordPress file path
checking login & pass with curl
Should Sys Admins (Domain Admins) also have user accounts?
Outlook 2007 Tasks sending out automatic status reports (updates) when attachments are opened