Date.Today Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.