delphi datetimepicker 设置时间成2010-10-10并显示
就这么简单
就这么简单
解决方案 »
- [Fatal Error] File not found:
- 关于DBGrideh
- 如何获去dbgrideh中的picklist选中的值?
- DELPHI如何获得客户端IP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- 为何下载的DELPHI源代码不能编译运行?
- 请问怎样实现调用一个窗口后再回到主窗口?具体问题近来看看 在线等待 解决给分
- 两次执行循环问题?
- 能否获取模拟点击其它程序的一个按钮后所创建窗口的句柄?
- 使用Delphi获取Word文档奇偶数页眉页脚
- 看来此论坛无能人也!无人会回答此问题!都是一群foolish man!!!
- left side ot be assigned to? !!!
- 如何实现一个增强型的任务管理器:能记录长期的历史数据、支持重播
d The one- or two-digit day.
dd The two-digit day. Single-digit day values are preceded by a zero.
ddd The three-character weekday abbreviation.
dddd The full weekday name.
h The one- or two-digit hour in 12-hour format.
hh The two-digit hour in 12-hour format. Single-digit values are preceded by a zero.
H The one- or two-digit hour in 24-hour format.
HH The two-digit hour in 24-hour format. Single-digit values are preceded by a zero. 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.
t The one-letter AM/PM abbreviation (that is, AM is displayed as "A").
tt The two-letter AM/PM abbreviation (that is, AM is displayed as "AM").
yy The last two digits of the year (that is, 2001 would be displayed as "01"). yyyy The full year (that is, 2001 would be displayed as "2001").To include literal strings in the format, enclose them in single quotes. Failing to quote literal strings can have unpredictable results, even if they do not include formatting codes. Use two single quotes to represent one single quote character in literal string. For example,'Today''s date:' MMM dd, yyyyentered in the property editor, produces the following results for April 1, 2001: "Today's date: Apr 01, 2001".
这是让我蛋疼的答案……设置Format为我写的yyyy-MM-dd
才是正确答案……