ConvertTo-KFISODateTime

Syntax

ConvertFrom-KFISODateTime 
  [-Dt] <datetime> 
  [-ThrowErrors[:$true]]

Support

>= kenaflow 1.0.0

Return

String.

Description

This cmdlet converts PowerShell date objects to the ISO representation that can be used with SharePoint.

Parameters

[-Dt] <string>

Datetime value as string.

[-ThrowErrors[:$true]]

This is a default parameter for all kenaflow cmdlets. If set to $true (default!) the engine will pass exception within the cmdlet to the script for further handling.

Example

Cls; Import-Module "c:\Program Files\kenaflow\kenaflow.runtime.dll"

Start-KFSharePointModule -SharePointVersion sp2013

ConvertTo-KFISODateTime ([DateTime]::Now)

Discussion