JavaScript method: XMLDate.getDatum()

This method returns an Service Manager-formatted date/time Datum object.

Syntax

XMLDate.getDatum();

Arguments

There are no arguments for this method.

Return values

A string or null.

The method returns a Service Manager-formatted date/time Datum object or null if the conversion fails.

Example

This example does the following:

  • Creates a new XMLDate object containing today's date
  • Converts the XMLDate object to Service Manager-formatted date/time Datum object then displays the result
print( "Creating XMLDate object..." );
var d = new XMLDate( new Date() );
print( "The value of the new XMLDate object is: " + d );
print( "Converting the XMLDate to a Service Manager Datum..." );
var sm = d.getDatum();
print( "The Service Manager Datum object is: " + sm );