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: 11.0.0.6296

Syntax

C#
public string ConvertUtcDateTimeToNeutral(
	string utcStr,
	string inPattern
)
Visual Basic (Declaration)
Public Function ConvertUtcDateTimeToNeutral ( _
	utcStr As String, _
	inPattern As String _
) As String
J#
public String ConvertUtcDateTimeToNeutral(
	String utcStr,
	String inPattern
)
JScript
public function ConvertUtcDateTimeToNeutral(
	utcStr : String, 
	inPattern : String
) : String

Parameters

utcStr
Type: System..::.String
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: System..::.String
Invariant culture date time format.

Return Value

The convertation result.

Exceptions

ExceptionCondition
System..::.ArgumentOutOfRangeExceptionNo time zones with name=the session time zone name found
System..::.FormatExceptionutcStr does not contain a valid string representation of the type defined by the inPattern
System..::.NotSupportedExceptionThe method is running on not supported platform

See Also