Now Function

Torna el sistema actual de data i hora com a valor Date.

note

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


Sintaxi:


Now

Valor de retorn:

Data

Exemple:


  Sub ExampleNow
      Msgbox "Ara és " & 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

Ens cal la vostra ajuda!