Date.Now Method

Definition

Gets the current system date and time in ISO format (YYYY-MM-DDThh:mm:ss).

public:
 System::Object ^ Now();
public object Now ();
abstract member Now : unit -> obj
Public Function Now () As Object

Returns

An object that represents the current date and time.

Examples

In the following example, the variable currentDateTime is set to the current system date and time:

object currentDateTime = thisXDocument.Util.Date.<span class="label">Now</span>();
thisXDocument.UI.Alert(currentDateTime.ToString());

Remarks

Important: This member can be accessed without restrictions.

Applies to