Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxSchedulerDateTimeHelper.ConvertToLocalTime(TDateTime,Integer) Method

Converts a UTC time into the ATimeZone time zone’s time.

#Declaration

Delphi
class function ConvertToLocalTime(const ADateTime: TDateTime; ATimeZone: Integer = -1): TDateTime; virtual;

#Parameters

Name Type
ADateTime TDateTime
ATimeZone Integer

#Returns

Type
TDateTime

#Remarks

Use the ConvertToLocalTime method to convert the UTC (coordinated universal time) time into the ATimeZone time zone’s time.

The ADateTime parameter specifies the UTC date and time;

The ATimeZone parameter specifies the target time zone.

Note

if the ATimeZone parameter is not specified the current host environment’s settings are used.

See Also