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.9.36244
Syntaxpublic string ConvertUtcDateTimeToNeutral(
string utcStr,
string inPattern
)
Public Function ConvertUtcDateTimeToNeutral (
utcStr As String,
inPattern As String
) As String
public String ConvertUtcDateTimeToNeutral(
String utcStr,
String inPattern
)
public function ConvertUtcDateTimeToNeutral(
utcStr : String,
inPattern : String
) : String
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:
StringThe conversion result.
ExceptionsException | Condition |
---|
ArgumentOutOfRangeException | No time zones with name=the session time zone name found |
FormatException | utcStr does not contain a valid string representation of the type defined by the inPattern |
NotSupportedException | The method is running on not supported platform |
See Also