Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Overview

Returns the current date in the specified time zone.

DateTimeOffset Calendar.GetToday(timeZone: string)

Arguments

string timeZone
Specifies the target time zone for current date in "hh:mm" format. Optional, if not specified system timezone information is used.

Example

date comparison
$Calendar.GetToday('').toISOString();

Example

$Xml.SetValue('Date1', $Calendar.GetToday(''));
$Xml.SetValue('Date2', $Calendar.GetToday('02:00'));

Example

<Date1>2017-01-25T16:04:40.5625645Z</Date1>
<Date2>2017-01-25T18:04:40.5625645+02:00</Date2>

Examples

date comparison
$Calendar.GetToday('').toISOString();
$Xml.SetValue('Date1', $Calendar.GetToday(''));
$Xml.SetValue('Date2', $Calendar.GetToday('02:00'));
<Date1>2017-01-25T16:04:40.5625645Z</Date1>
<Date2>2017-01-25T18:04:40.5625645+02:00</Date2>
  • No labels