Using the WinRT Globalization API

Posted by on in Programming

With RAD Studio 10 Seattle, developers can rapidly update their VCL and FMX applications to take full advantage of the Windows 10 wave. Support includes Windows 10 and native WinRT/UWP components and APIs, Windows 10 VCL User Experience controls, and updated Windows 10 FMX support.

We have a great demo that shows you how to use the ICalendar interface to show the current date of the system in the different calendar systems, as well as specific information from the four calendar systems.
The sample displays the calendar information in a TMemo. TCalendarIdentifiers is used to set the different calendar systems:

- Gregorian
- Japanese
- Hebrew
- Hijri

The main units used in this sample are:

- Winapi.Globalization.pas
- Winapi.WinRT.pas
- Winapi.Foundation.Collections.pas 

You can download the demo here: 


You can access the API information here:



Gold User, Rank: 5, Points: 558
Senior Product Manager, RAD Studio


Check out more tips and tricks in this development video: