Modifica

Condividi tramite


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());

Applies to