清 清新空气 Unregistered / Unconfirmed GUEST, unregistred user! 2006-05-19 #2 function AGetWeek(const CuDate: TDateTime): string;<br>var<br> w: integer;<br> week: string;<br>begin<br> w := DayOfWeek(CuDate);<br> case w of<br> 1: week := '日';<br> 2: week := '一';<br> 3: week := '二';<br> 4: week := '三';<br> 5: week := '四';<br> 6: week := '五';<br> 7: week := '六';<br> end; {case}<br> Result := '星期' + week;<br>end;
function AGetWeek(const CuDate: TDateTime): string;<br>var<br> w: integer;<br> week: string;<br>begin<br> w := DayOfWeek(CuDate);<br> case w of<br> 1: week := '日';<br> 2: week := '一';<br> 3: week := '二';<br> 4: week := '三';<br> 5: week := '四';<br> 6: week := '五';<br> 7: week := '六';<br> end; {case}<br> Result := '星期' + week;<br>end;
流 流浪者_2008 Unregistered / Unconfirmed GUEST, unregistred user! 2006-05-19 #3 var<br> aYear,aWW,aDD:Word;<br>begin<br> DecodeDateWeek(Date,aYear,aWW,aDD);<br>其中aDD就是周幾,1...7對應周一到周日
var<br> aYear,aWW,aDD:Word;<br>begin<br> DecodeDateWeek(Date,aYear,aWW,aDD);<br>其中aDD就是周幾,1...7對應周一到周日