delphi获取星期几


本文整理自网络,侵删。

 unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;

type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

function getWeek:string ;
var
date:SYSTEMTIME;
begin
GetLocalTime(date);

case date.wDayOfWeek of
0:Result:='星期天';
1:Result:='星期一';
2:Result:='星期二';
3:Result:='星期三';
4:Result:='星期四';
5:Result:='星期五';
6:Result:='星期六';
end;
end;

相关阅读 >>

Delphi 2009 之 tstringbuilder 类[4]: insert 与 remove

Delphi qq表情的实现

Delphi启动控制面板的方法列表

Delphi getfilesize 获取文件大小 2

Delphi-获取毫秒-计算代码运行的时间

Delphi中编写无输出函数名的dll文件

Delphi求数组最大\最小值

Delphi 随鼠标移动的十字线的快速画法

Delphi sccoloredid,星际争霸彩色 id 修改器 v0.2.0,支持 windows vista

Delphi string与tstringlist

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



打赏

取消

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

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

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

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

评论

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