Date.Now 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 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());