Click or drag to resize

I18NSessionContextConvertUtcDateTimeToNeutral Method

Converts utcStr date to string representing the same moment of time in the time zone of the session in neutral format.

Namespace:  Aras.IOM
Assembly:  IOM (in IOM.dll) Version: 14.0.20.39432
Syntax
public string ConvertUtcDateTimeToNeutral(
	string utcStr,
	string inPattern
)

Parameters

utcStr
Type: SystemString
If utcStr doesn't have an offset it's interpreted as UTC date/time; i.e. as it would have offset +0000. If the parameter has an offset then it's interpreted as the exact moment of time that is specified by the parameter.
inPattern
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
FormatExceptionutcStr does not contain a valid string representation of the type defined by the inPattern
NotSupportedExceptionThe method is running on not supported platform
See Also