Link to home
Start Free TrialLog in
Avatar of Murat Raymond
Murat RaymondFlag for United States of America

asked on

Date Difference and display format: Format: yyyy-MM-dd HH:mm:SS.xxx

I need to Display the Current date and time - (minus)1 hours to the following format: Format: yyyy-MM-dd HH:mm:SS.xxx

can someone help me?

Thank you in advance.
Avatar of Den_HBR
Den_HBR

MsgBox(Format(DateAdd(DateInterval.Hour, -1, Now), "yyyy-MM-dd HH:mm:ss.fff"))
SOLUTION
Avatar of JonMny
JonMny

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Dana Seaman
Dana Seaman
Flag of Brazil image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murat Raymond

ASKER

Different versions,
Den's will work best for me.
Thank you all for the quick response.

Vico1
Thank you Den HBR!