简体   繁体   English

Delphi XE7 Firemonkey:如何获取设备中设置的区域设置dateformat?

[英]Delphi XE7 Firemonkey: How to get locale dateformat set in device?

I'm writing a mobile application for both iOS and Android and need to get the locale dateformat set in the device to display the date correct in tables and graphs. 我正在为iOS和Android编写移动应用程序,并且需要获取设备中设置的语言环境dateformat才能在表格和图形中显示正确的日期。 How to get that format information? 如何获取格式信息? I have searched both on google and within SO, without finding anything. 我已经在Google和SO内搜索了,却没有找到任何东西。

Any help would be appreciated. 任何帮助,将不胜感激。

/Lars / Lars

FormatSettings.ShortDateFormat; FormatSettings.ShortDateFormat; and FormatSettings.LongDateFormat; FormatSettings.LongDateFormat;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM