Now Function

āļ´āļ¯āˇŠāļ°āļ­āˇ’ āļ¯āˇ’āļąāļē āˇ„āˇ ⎀⎙āļŊāˇāˇ€ Date āļ…āļœāļēāļšāˇŠ āļŊāˇ™āˇƒ āļŊāļļāˇāļ¯āˇ™āļē⎒.

note

The Now function calculates time up to milliseconds, but return time in seconds.


Syntax:


Now

Return value:

āļ¯āˇ’āļąāļē

Example:


  Sub ExampleNow
      msgbox "It is now " & Now
  End Sub
  REM Work with milliseconds timings
  Sub ExampleNowDouble
      Dim myTime As Double
      myTime = now
      MsgBox "It is now " & format(myTime, "yyyy-mm-dd HH:MM:SS.000")
  End Sub

Please support us!