日期时间分离出日期 怎么样解决这个问题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 t: TDateTimedate: TDateTimedate := Int(t) 接楼上的t: TDateTime;dateof(t);//日期timeof(t);//时间 接楼上的t: TDateTime;TDateTime(Trunc(t));//日期TDateTime(Frac(t));//时间 DecodeDate(Date: TDateTime; var Year, Month, Day: Word);DecodeTime(Time: TDateTime; var Hour, Min, Sec, MSec: Word);可以将日期(或时间)拆分成年,月,日(或者时,分,秒) decodedate 函数 将日期格式分解为年月日 decodetime 函数 将时间格式分解为时、分、秒、毫秒 encodedate 函数 将年月日合成为日期格式 encodetime 函数 将时、分、秒、毫秒合成为时间格式 其它的自己查help喽 fastrepoer 4.9.32 报表导出XLS 出错 delphi:如何将数个grid内的数据保存到一个文件中? 数据库select 问题,急 记录赋值问题,解答者高分相送 怎么实现定时复制文件? 求glscene控件教程?~~~ sql语句问题 日期段间数据查询, 窗体的问题 郁闷,神龙卡的安装问题?!高分求救! DELPHI 怎么获取一个500错误网页的源代码 如何用winexec或者shellexecute调用拨号连接(操作系统是Win2000)! 一个很菜的问题
date: TDateTime
date := Int(t)
t: TDateTime;
dateof(t);//日期
timeof(t);//时间
t: TDateTime;
TDateTime(Trunc(t));//日期
TDateTime(Frac(t));//时间
DecodeTime(Time: TDateTime; var Hour, Min, Sec, MSec: Word);
可以将日期(或时间)拆分成年,月,日(或者时,分,秒)
decodetime 函数 将时间格式分解为时、分、秒、毫秒 encodedate 函数 将年月日合成为日期格式
encodetime 函数 将时、分、秒、毫秒合成为时间格式 其它的自己查help喽