Realize that Date/Time Values are NUMBERS. It SEEMS that you have posted CUSTOM FORMATTED Date/Time dosplays. What is the ACTUAL Date/Time VALUES that we are working with?
If you had ACTUAL Date/Time values, the difference in the latter example that you posted, would have to be multiplied by 24*60*60 to return 25200.
How are you getting 25200?
Skip,
[sub] [red]Be advised:[/red] Alcohol and Calculus do not mix!
If you drink, don't derive! [/sub]
Okay, I parsed out the date from a file which has NO relation with the date formats in VBA or whatever.
Tue Aug 24 21:00:00 2004 <-- taken from a data file, and inserted into the MS Access db table (that is only one of the files in the record)
All I want to know is if there is a format in VBA where I can employ the DAY(mon,tue,etc) and TIME to perform the DateDiff() and return the number of seconds (just like my previous post as I am getting a type mismatch error due to my formatting)
You asked before why I didnt use the date as it is, well it doesn't work as I get the same error.
Namely,
DateDiff("s", "Tue Aug 24 2004 6:00 PM", "Wed Aug 25 2004 1:00 AM")
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.