ToUniversalTime methodOfficial Content

Converts a DateTime value to Coordinated Universal Time (UTC), assuming that the DateTime to convert to is the server’s time zone.

DateTime-expression.ToUniversalTime()

DateTime-expression
Is a DateTime expression to which the method applied converts to Coordinated Universal Time (UTC)

Type returned:
DateTime

Scope

Data Types:  DateTime
Generators: .NET, .NET Framework, Java, Ruby (up to GeneXus X Evolution 3)

Samples

&MeetingInUTC = &MeetingDateTime.ToUniversalTime()
&MeetingInUTC = &MeetingDateTime.AddDays(5).ToUniversalTime()