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.9.36244
Syntaxpublic string ConvertNeutralToUtcDateTime(
string neutralStr,
string outPattern
)
Public Function ConvertNeutralToUtcDateTime (
neutralStr As String,
outPattern As String
) As String
public String ConvertNeutralToUtcDateTime(
String neutralStr,
String outPattern
)
public function ConvertNeutralToUtcDateTime(
neutralStr : String,
outPattern : String
) : String
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:
StringThe conversion result.
ExceptionsException | Condition |
---|
ArgumentOutOfRangeException | No time zones with name=the session time zone name found |
FormatException | inPattern supposes time offset |
FormatException | neutralStr is not in neutral format |
NotSupportedException | The method is running on not supported platform |
See Also