Date/time calculations

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

How can I check if the value stored in a datetime variable is over an hour
earlier than current date time?

Thanks

Regards
 
How can I check if the value stored in a datetime variable is over an hour
earlier than current date time?

If yourDateTime < DateTime.Now.AddHours(-1) Then ...


Mattias
 
Many thanks for that. Would be grateful for a link on how to handle xml
files.

Thanks

Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top