function Week_Pos(DDateStr: TDate):Integer;
var i, j ,k, Yoil: Integer;
YearStr: String;
FDateStr, EDateStr: TDate;
begin
YearStr := Copy(DateToStr(DDateStr),1,4);
j := 0;
for i := 1 to 53 do
begin
k := i * 7;
EDateStr := StrToDate(YearStr+'-01-01') -1 -Yoil +k; //주의 마지막일자
FDateStr := EDateStr -6; //주의 처음일자
if (FDateStr <= DDateStr) and (DDateStr <= EDateStr) then
begin
j := i;
Break;
end;
end;
1-53 사이의 값이 Return 됩니다.