如果是用SQL的话可以用yeah()函数来提取年...month()..day()
解决方案 »
- 变量定义在第三方控件里,我想换掉那个控件 但那个变量定义一定要,怎么办?
- 一个基于点对点的即时消息系统,具有即时消息,语音/视频对话,文件传输(支持断点续传),多人对话,消息群发,状态管理等功能,欢迎试
- 一个小问题?
- 知道微型打印机如何打印的请进!
- 创建了一个远程数据模块,如何可以在客户端数据请求完成以后,将远程数据模块也关闭。
- 在两个ACCESS之间怎么批量插入数据
- ?怎样建立一个单元文件?
- 失恋的程序员报到!相识何必曾相逢!为了我们的梦想与世界的进步!我们可以失恋更可以献出生命
- 在DELPHI怎样能及时的记录每次浏览的URL地址
- delphi的编译指令
- 一个程序启动后如何知道是由鼠标双击后运行的还是由用户按下会车键后运行的?
- 救救我,update怎么写,100分相送。
自己看一下HELP吧,我记不清了!
Present: TDateTime;
Year, Month, Day, Hour, Min, Sec, MSec: Word;
begin
Present:= Now;
DecodeDate(Present, Year, Month, Day);
DecodeTime(Present, Hour, Min, Sec,Msec);
end;
就算是5分都给我!
var
aaa,bbb,ccc:string;
begin
aaa:=formatdatetime('YYYY',date);
bbb:=formatdatetime('MM',date);
ccc:=formatdatetime('DD',date);
请马上结帖子吧!!
YY,MM,DD:Word;
OneDate:TDate;
begin
OneDate:=Date;
DecodeDate(OneDate,YY,MM,DD);
end;
Ueses 个DateUtils;
function YearOf(const AValue: TDateTime): Word;
function MonthOf(const AValue: TDateTime): Word;
function WeekOf(const AValue: TDateTime): Word; {ISO 8601}
function DayOf(const AValue: TDateTime): Word;
function HourOf(const AValue: TDateTime): Word;
function MinuteOf(const AValue: TDateTime): Word;
function SecondOf(const AValue: TDateTime): Word;
function MilliSecondOf(const AValue: TDateTime): Word;