troubleshooting Question

Date and time calculation in Visual Basic 6.0

Avatar of run2004
run2004 asked on
Visual Basic ClassicMicrosoft Development
5 Comments1 Solution4392 ViewsLast Modified:
Hi Friends,

Can anybody help l me how to extract hour, minutes and seconds from the various date and time formats.

In addition to this I have separate requiremnt about calculating the time 15 minutes before and display it in MMDDYYYYHHMMSS format. Basically the 15 minutes should be subtracted from the above format.

I idea is to retrieve the data from the SQL server the given time ranges in the above format. I will take care of writing the SQL. But I am stuch while subtracting 15 minutes from the format and display the time of 15 min ago in the message box.

Any help will be highly appreciated.

Thanks!
Run2004
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros