Date.Today Method

Definition

Gets the current system date in ISO format (YYYY-MM-DD).

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

Returns

An object that represents the current date.

Examples

In the following example, the variable currentDate is set to the current system date.

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

Remarks

Important: This member can be accessed without restrictions.

Applies to