Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/424.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Delphi TDatetimePicker格式显示错误_Delphi_Tdatetimepicker - Fatal编程技术网

Delphi TDatetimePicker格式显示错误

Delphi TDatetimePicker格式显示错误,delphi,tdatetimepicker,Delphi,Tdatetimepicker,如果我设置了TDateTimePicker组件(Delphi XE10)的属性“format”,例如ddd d/m/yyyy,那么它将显示Tue 14/47/2016!!2016年12月31日为2016年12月31日! 请问发生了什么事?日期格式不正确。您需要使用大写字母M,如中所示。小写字母m表示时间格式中的分钟 m The one- or two-digit minute. mm The two-digit minute. Single-digit values are prece

如果我设置了TDateTimePicker组件(Delphi XE10)的属性“format”,例如ddd d/m/yyyy,那么它将显示Tue 14/47/2016!!2016年12月31日为2016年12月31日!
请问发生了什么事?

日期格式不正确。您需要使用大写字母
M
,如中所示。小写字母
m
表示时间格式中的分钟

m The one- or two-digit minute. mm The two-digit minute. Single-digit values are preceded by a zero. M The one- or two-digit month number. MM The two-digit month number. Single-digit values are preceded by a zero. MMM The three-character month abbreviation. MMMM The full month name. 我是一位数或两位数的分钟。 两位数的分钟。一位数的值前面有一个零。 M是一位或两位数字的月份编号。 两位数的月数。一位数的值前面有一个零。 嗯,三个字符的月份缩写。 嗯,完整的月份名称。
ddd MM/dd/yyyy
显示2016年6月14日星期二,而
ddd dd/MM/yyyy
显示2016年6月14日星期二

许多感谢我认为n代表分钟,m代表mohth@JimPapas:
n
是分钟和相关函数。但不在
TDateTimePicker
中。