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

Syntax

C#
public string ConvertNeutralToUtcDateTime(
	string neutralStr,
	string outPattern
)
Visual Basic (Declaration)
Public Function ConvertNeutralToUtcDateTime ( _
	neutralStr As String, _
	outPattern As String _
) As String
J#
public String ConvertNeutralToUtcDateTime(
	String neutralStr,
	String outPattern
)
JScript
public function ConvertNeutralToUtcDateTime(
	neutralStr : String, 
	outPattern : String
) : String

Parameters

neutralStr
Type: System..::.String
A string that represent a date-time in the time zone of the session in neutral format.
outPattern
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..::.FormatExceptioninPattern supposes time offset
System..::.FormatExceptionneutralStr is not in neutral format
System..::.NotSupportedExceptionThe method is running on not supported platform

See Also