[This is preliminary documentation and is subject to change.]

Converts the given date to the user datetime. This method converts the datetime column in all the rows of the column determined by the columnName. It returns the same dataset back to the user. Note: No check is made to make sure that the data being converted is in the correct input format. Also, if the incoming datetime is null then the item is automatically converted here to DateTime.MinValue

Namespace:  OfficeClip.Utils
Assembly:  OfficeClip.Utils (in OfficeClip.Utils)
Version: 8.1.1.0

Syntax

C#
public static void ConvertToUserTz(
	DataSet ds,
	int position,
	string columnName,
	TimeZoneInfo fromTz,
	TimeZoneInfo toTz
)
Visual Basic (Declaration)
Public Shared Sub ConvertToUserTz ( _
	ds As DataSet, _
	position As Integer, _
	columnName As String, _
	fromTz As TimeZoneInfo, _
	toTz As TimeZoneInfo _
)
Visual C++
public:
static void ConvertToUserTz(
	DataSet^ ds, 
	int position, 
	String^ columnName, 
	TimeZoneInfo^ fromTz, 
	TimeZoneInfo^ toTz
)

Parameters

ds
Type: System.Data..::.DataSet
The dataset on which the operation is performed
position
Type: System..::.Int32
The position where the table in the dataset is in 0 is the first position
columnName
Type: System..::.String
The nameof the column which needs to beconverted
fromTz
Type: OfficeClip.Utils..::.TimeZoneInfo
The timezone information of the timezone we are converting from
toTz
Type: OfficeClip.Utils..::.TimeZoneInfo
The timezone information of the timezone we are converting to

See Also