delphi MonthCalendar1 获取选中日期


本文整理自网络,侵删。

 


uses DateUtils;

procedure TForm1.MonthCalendar1Click(Sender: TObject);
begin
caption:= YearOf(MonthCalendar1.Date).ToString + '-' + MonthOfTheYear(MonthCalendar1.Date).ToString + '-' + DayOfTheMonth(MonthCalendar1.Date).ToString;
//caption:=DateTimeToStr(MonthCalendar1.Date);
end;

相关阅读 >>

Delphi idftp发送本机ip和外网ip

Delphi 匿名管道

Delphi doc转txt

Delphi 2010 域名转换ip

Delphi读取radiogroup选中按钮的string文本

Delphi 利用tdictionary 文本去重

Delphi tms web core 通过url 传递参数

Delphi 取得和设置当前系统的短日期格式

Delphi debug模式下可以但是release模式下报错原因之一

Delphi tfilestream和tmemorystream分别读取、创建、合并文件

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...