SWT DateTime格式更改 [英] SWT DateTime format change
本文介绍了SWT DateTime格式更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的是DateTime SWT组件,显示时为美式格式(mm / dd / yyyy)。
I'm using a DateTime SWT component, and it has an American format when displayed (mm/dd/yyyy).
有没有办法将格式更改为dd / mm / yyyy?
Is there any way to change the format to dd/mm/yyyy ?
推荐答案
DateTime
uses the OS specific user preferences to format the date. (On Windows these are the Regional and Language Options in the system settings).
可能的解决方法描述为这里(向下滚动到最新的两个条目)。但我没有尝试过这个。
A possible workaround is described here (scroll down to the latest two entries). But I haven't tried this myself.
这篇关于SWT DateTime格式更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文