如何单独取得TDateTimePicker控件的年度和月份
解决方案 »
- 请问ADOTable1为什么不能保存?
- 如何修改soapheader的内容,请高手指点,非常急!!!!!!
- 求助一段循环代码,请高手指点
- 有没有办法让一个DBEdit控件记录两个字段信息
- TIdUDPClient.SendBuffer,在D2010和D7为什么不一样?
- 怎么实现单击菜单就在该菜单项前面加一个类似复选框的“对号”,再次单击后“对号”消失?
- 如何在菜单的左边加一个长方形的图片,就像WINDOWS的开始菜单?
- 哪里有关于delphi的三层编程的技术资料?
- 有关恢复硬盘主引导记录区(MBR)的问题
- 我靠,女朋友挑情人节来甩我,这世道太险恶了!!!!!!!!![
- 菜鸟问题如何将float数转换固定的格式
- 小问题
Returns Year, Month, and Day values for a TDateTime value.UnitSysUtilsCategorydate/time routinesprocedure DecodeDate(Date: TDateTime; var Year, Month, Day: Word);DescriptionThe DecodeDate procedure breaks the value specified as the Date parameter into Year, Month, and Day values. If the given TDateTime value has a negative (BC) year, the year, month, and day return parameters are all set to zero.
DecodeDate(DateTimePicker1.Date, year, month, day);或FormatDateTime('yyyy', DateTimePicker1.Date);
FormatDateTime('mm', DateTimePicker1.Date);