- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
时间格式化(Time formatting)
时间格式化(Time formatting)
Use reference one:
FormatDateTime (MM, now) displays the month in the current time
Its that simple
Please refer to the rest:
Function FormatDateTime (const, Format:, string, DateTime:, TDateTime): string;
C displays the time in short format, that is, the representation of numbers
FormatdateTime (c, now);
The output is: 2004-8-7 9:55:40
D corresponds to the date in the time, the date is one, there is one, and the two bit shows the two
FormatdateTime (d, now);
The output may be 1~31
DD and d have the same meaning, but they are always displayed in two bits
FormatdateTime (dd, now);
The output may be 01 to 31
DDD shows what day it is
FormatdateTime (ddd, now);
Output: Saturday
Dddd and DDD show the same thing.
But the two above may not be the same in other countries.
Ddddd displays day and month in short format
FormatdateTime (ddddd, now);
Output is: 2004-8-7
Dddddd displays day and month in a long format
FormatdateTime (dddddd, now);
Output: August 7, 2004
E/ee/eee/eeee displays the year in the corresponding number of digits
FormatdateTime (ee, now);
Output is: 04 (for 04 years)
M/mm/mmm/mmmm stands for the moon
FormatdateTime (m, now);
Output is: 8
FormatdateTime (mm, now);
Output is 08
FormatdateTime (mmm, now);
The output is August
FormatdateTime (mmmm, now);
The output is August
Like ddd/dddd, it may be different in other countries
Yy/yyyy means year
FormatdateTime (yy, now);
Output is 04
FormatdateTime (yyyy, now);
Output is 2004
H/hh, n/nn, s/ss, and z/zzz represent hours, minutes, seconds, and milliseconds, respectively
T displays time in short format
FormatdateTime (t, now);
The output is 10:17
TT displays time in a long format
FormatdateTime (tt, now);
The output is 10:18:46
Does the ampm appear in a long format, morning or afternoon?
FormatdateTime (ttampm, now);
Output is: 10:22:57 am
Two time addition formats:
CxComboBox1.Text:=, FormatdateTime (t, now); //12:13
CxDateEdit1.Text:=, FormatdateTime (ddddd, now); //1987-12-26
CxComboBox3
您可能关注的文档
- 开心厨房三星菜(精)(Happy kitchen, star dish (essence)).doc
- 开源一stm32项目,can,uart,input检测 原创相对高效性能与代码重用平衡思路,可直接做工程模板(Open source STM32 project, can, UART, input testing original, relatively efficient performance and code reuse balance ideas, you can directly do project templates.doc
- 开脱红海血拼,实行蓝海计谋!(From the red sea shopping, the implementation of blue ocean strategy!).doc
- 开饭店需要申报消防申报的文件(Open the hotel need to declare fire declaration documents).doc
- 异业联合,资源对接的启示--解秘tcl冰箱和农夫山泉的联合之路(Synergy, resource docking -- Enlightenment of declassified TCL refrigerators and Nongfushangquan joint road).doc
- 异分母加减(Addition and subtraction of different denominator).doc
- 弄好促销举动的四个要点(Four keys to a promotion).doc
- 异淀粉酶的应用(Application of amylase).doc
- 弗罗斯特(robert frost)诗选(弗罗斯特 (Robert Frost) 诗选).doc
- 张作霖子女生平简介(A brief account of the lives of Zhang Zuolin's children).doc
- 昆明理工大学(kunming university of science and technology).doc
- 昌海国防 奔向蔚蓝(Chang Hai national defense toward the blue).doc
- 日语形容词一览(A list of adjectives in Japanese).doc
- 明星志愿3姚子莹(Star wish 3 Yao Ziying).doc
- 时代光华管理课程目录(Times Guanghua Management course catalogue).doc
- 星火计划(Spark Program).doc
- 星球大战绝地学院3 攻略jediacedemy(Star Wars Jedi Academy 3 Raiders jediacedemy).doc
- 易错成语100例(Error prone idioms in 100 cases).doc
- 星级评比方案(Star rating scheme).doc
- 春兰汽车策划全案分类(Whole case classification of Chunlan automobile plan).doc
最近下载
- 2025年初级会计职称《初级会计实务》精讲课件 第一章 概述.pdf
- 锅炉安装施工通用工艺规程.pdf VIP
- 医院消毒供应室规范化管理.pptx VIP
- DB4102_T 045-2024 开农85夏直播花生栽培技术规程.docx VIP
- TCAMET - 城市轨道交通全自动运行系统第5部分:核心设备产品规范.pdf VIP
- 混凝土道路施工方法.docx VIP
- 2024网民网络安全感满意度调查—商用密码专题调查报告-密码科技国家工程研究中心.pdf
- 某公司采购工作手册.doc VIP
- 现代幼儿教师实用英语口语 (12)句子教学.pptx VIP
- 光伏项目经济指标工程概算造价表.xlsx VIP
文档评论(0)