本文整理自网络,侵删。
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 请求时间,为当前时间,数值为1970-01-01以来的毫秒数
pos、ansipos、fillchar在Delphi2010中unicode的问题
Delphi 从listview组件中的选定行在数据库中删除
Delphi net.httpclient正则批量获取网页代码中的数值
Delphi xe 跨平台(windows、android安卓、苹果macos、苹果ios)写法
更多相关阅读请进入《Delphi》频道 >>