vbatimeepochseconds

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


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


Solution

  • How about:

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