如何赋当前日期给label.caption label.captiong:=formatedatetime('yyyy-mm-dd',date); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 sorry多写了个'e'label.captiong:=formatdatetime('yyyy-mm-dd',date); 再告诉你一种方法DateTimeToStrimg(label.Caption,'yyyy-mm-dd',Date); DateToStr(Date) 可以把当前日期转化为字符型.同理还有:TimeToStr(Time) 等... 不好意思,写错了,是 DateTimeToString yourlabel.caption:=DateTimeToString(datetime) yourlabel.caption:=DateToStr(Date);yourlabel.caption:=DateTimeToString(date) label.caption :=DateTimeToString(date); DateToStr():把日期型转换为字串。Date:为取当前日期所以:label.caption:=DateToStr(Date);这么详细,多点分撒! label.captiong:=formatdatetime('yyyy-mm-dd',date); delphi怎样实现access数据库中表中字段所含任意一个字符的查询 散分!<也许今天会是一个特别的日子> 制作dll文件 请问这是什么错误啊? 要做一个简单的IM系统,对数据库里的数据的读、写,采用什么方法比较好? 难道没有人知道吗 100分请教一个ADO版本问题 在delphi中如何获得摄像头捕捉的图象 windows开发貌似都不怎么行了,现在C++都要求会linux 我有一个控件的源代码,为何我在DELPHI6中加入了,却用不了控件的方法。大家帮我看看。 求两个日期相差年月日,帮我看看程序。 网上怎样传输一条记录,
label.captiong:=formatdatetime('yyyy-mm-dd',date);
DateTimeToStrimg(label.Caption,'yyyy-mm-dd',Date);
yourlabel.caption:=DateTimeToString(date)
Date:为取当前日期
所以:label.caption:=DateToStr(Date);这么详细,多点分撒!