DateDiff

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What is the syntax to subtract 3 hours for the following


12:00:00 AM

Thanks

Mike
 
Mike,

dteMyNewTime = Format(DateAdd("h", -3, dteMyTime), "hh:nn AMPM")

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
 

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