How to get seconds since epoch (1/1/1970) in VBA?

aF. picture aF. · Feb 13, 2010 · Viewed 26.2k times · Source

How can I get seconds since epoch (1/1/1970) in VBA?

Answer

Fionnuala picture Fionnuala · Feb 14, 2010

How about:

datediff("s",#1970/1/1#,now())