unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs; type TForm1 = class(TForm) procedure FormCreate(Sender: TObject); end; var Form1: TForm1; implementation {$R *.dfm} uses DateUtils; procedure TForm1.FormCreate(Sender: TObject); var t1,t2,t3: TDateTime; begin t1 := Yesterday; t2 := Today; //同 SysUtils.Date; t3 := Tomorrow; ShowMessageFmt('%s, %s, %s', [DateToStr(t1), DateToStr(t2), DateToStr(t3)]); {2009-5-20, 2009-5-21, 2009-5-22} end; end.
Yesterday、Today、Tomorrow - 昨天、今天、明天
原创JLee79 ©著作权
文章标签 DateUtils 单元 函数 文章分类 后端开发
-
Mysql8.0.35rpm安装(不区分大小写、弱密码规则)
mysql8.0.23rpm安装
mysql 初始化 数据库 部署 -
有趣的CSS - 弹跳的圆
用css写一个好玩的不停弹跳变形的圆。
css 弹跳的圆 动效 动画 交互 -
my dream in tomorrow职场 休闲 my dream in tomorrow
-
Tomorrow is a new day
Tomorrow is a new day !-
职场 情感 休闲 come on