Click or drag to resize

I18NSessionContextConvertNeutralToUtcDateTime Method

Converts a date-time in the time zone of the session in neutral format to a string that represents the same moment of time in UTC.

Namespace:  Aras.IOM
Assembly:  IOM (in IOM.dll) Version: 14.0.20.39432
Syntax
public string ConvertNeutralToUtcDateTime(
	string neutralStr,
	string outPattern
)

Parameters

neutralStr
Type: SystemString
A string that represent a date-time in the time zone of the session in neutral format.
outPattern
Type: SystemString
Invariant culture date time format.

Return Value

Type: String
The conversion result.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionNo time zones with name=the session time zone name found
FormatExceptioninPattern supposes time offset
FormatExceptionneutralStr is not in neutral format
NotSupportedExceptionThe method is running on not supported platform
See Also