CommonHelpers Class

Definition

Some common helpers useful for the service client adapter layer

C#
public class CommonHelpers
Inheritance
CommonHelpers

Constructors

Methods

GetDateTimeForService(DateTime)

Backend service expects date time to be serialized in the format: yyyy-MM-dd hh:mm:ss tt and en-US culture. In order to support user experiences from other time zones and cultures, this utility converts the date time into the correct date time format and culture.

GetDateTimeStringForService(DateTime)

Our service expects date time to be serialized in the following format we have to use english culture because our user might be running PS in another culture and our service can't understand it.

Applies to

Produto Versões
Azure - PowerShell Commands 12 (LTS), Latest
Azure RM - PowerShell Commands Latest