Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
$Xml.SetValue('Test/testdate', new DateTimeOffset());  // testdate will be saved to XML as "2015-11-12T15:27:16.2568549+02:00"
$Xml.SetValue('Test/testdate2', $Xml.Format("{{ format(Test/testdate,'dd/MM/yyyyyyyy-MM-dd') }}"));  // testdate2 will be saved to XML as "2015-12-11T00:00:00+02:0011"

// resultĀ : 2015-12-11T00:00:00+02:0011

Conditional Formatting

If conditional rendering needed format below can be used;

...