Now Function

Trả về ngày tháng hệ thống hiện thời dạng giá trị Ngày.

Biểu tượng Ghi chú

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


Syntax:


Now

Return type:

Ngày

Error codes:

5 Sai gọi thủ tục

Example:


  Sub ExampleNow
      msgbox "Bây giờ có " & 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!

Please support us!