<< Prev        Next >>

ID : 390

Now

Function

To return the current date and time.

Syntax

Now

Return value

Return the current date and time by string type data.

Description

The current date and time is returned by string type data.

Related Terms

Date, Time, Language Setting

 

Attention

The format varies depending on the language setting.

Example

'!TITLE "Acquiring Current Date and Time"
' Assign the current date and time to aaa
Sub Sample_Now

  Dim aaa As String

  ' Assign the current date and time to aaa
  aaa = Now

  ' Display acquired date and time on the message output window
  PrintDbg aaa

End Sub

ID : 390

<< Prev        Next >>