Solved

VB.Net - Easiect Way to Compare Datess With Time

Posted on 2014-03-21
2
176 Views
Last Modified: 2014-03-24
Good Day Experts!

I have the ever popular question about how to compare 2 dates...one is a SQL table date and the other is Date.Now.  

Here is a sample of the SQL table date:
3/21/2014 1:12:29 PM

Date.Now:
3/21/2014 3:42:13 PM

What I need to do is to add 1hr and 20minutes to the SQL table date and then compare it to Date.Now.  

Can you help point me in the right direction?

Thanks,
jimbo99999
0
Comment
Question by:Jimbo99999
2 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 39946268
Your SQL date is retrieved in your .Net application and stored in a DateTime variable?

YourDTVariable = YourDTVariable.AddMinutes(80)

if YourDTVariable < DateTime.Now ...
0
 

Author Comment

by:Jimbo99999
ID: 39946384
Hello...yes, I have it in a variable.  I will try out now.

Thanks,
jimbo99999
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Regex validation 2 28
VB.Net - MemoryMappedFiles - Confirm receipt 2 24
Expression Evaluater 3 38
Visual Studios 1 77
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question