Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.09.11;
Скачать: CL | DM;

Вниз

Как, по дате узнать день недели ?   Найти похожие ветки 

 
_Narayan_   (2003-08-31 22:23) [0]

Как, по дате узнать день недели ?


 
DrPass ©   (2003-08-31 22:41) [1]

DayOfWeek (в справку лень было глянуть, да?)


 
_Narayan_   (2003-08-31 22:45) [2]

спасибо


 
AndreySoft ©   (2003-08-31 22:49) [3]

А вот так не сгодится?
procedure TForm1.FormCreate(Sender: TObject);
var Den, Data, Time: string;
x,y:TDateTime;
begin
Label1.Caption:=DateToStr(Date);
x:=StrToDateTime(Label1.Caption);
DateTimeToString(Den,"dddd", x);
Label2.Caption:=Den;
y:=StrToDateTime(Label1.Caption);
DateTimeToString(Data,"d.mm.yyy", y);
Label1.Caption:=Data;
end;


 
Е-Моё имя ©   (2003-09-01 02:04) [4]

канешна сгодится
только вот так лучше:

procedure TForm1.FormCreate(Sender: TObject);
var Den, Data, Time: string;
x,y:TDateTime;
begin
Label1.Caption:=DateToStr(Date);
x:=StrToDateTime(Label1.Caption);
DateTimeToString(Den,"dddd", x);
Label2.Caption:=Den;
y:=StrToDateTime(Label1.Caption);
DateTimeToString(Data,"d.mm.yyy", y);
Label1.Caption:=Data;
Label1.Caption:=DateToStr(Date);
x:=StrToDateTime(Label1.Caption);
DateTimeToString(Den,"dddd", x);
Label2.Caption:=Den;
y:=StrToDateTime(Label1.Caption);
DateTimeToString(Data,"d.mm.yyy", y);
Label1.Caption:=Data;
Label1.Caption:=DateToStr(Date);
x:=StrToDateTime(Label1.Caption);
DateTimeToString(Den,"dddd", x);
Label2.Caption:=Den;
y:=StrToDateTime(Label1.Caption);
DateTimeToString(Data,"d.mm.yyy", y);
Label1.Caption:=Data;
Label1.Caption:=DateToStr(Date);
x:=StrToDateTime(Label1.Caption);
DateTimeToString(Den,"dddd", x);
Label2.Caption:=Den;
y:=StrToDateTime(Label1.Caption);
DateTimeToString(Data,"d.mm.yyy", y);
Label1.Caption:=Data;
Label1.Caption:=DateToStr(Date);
x:=StrToDateTime(Label1.Caption);
DateTimeToString(Den,"dddd", x);
Label2.Caption:=Den;
y:=StrToDateTime(Label1.Caption);
DateTimeToString(Data,"d.mm.yyy", y);
Label1.Caption:=Data;

end;

надежнее...


 
_Narayan_   (2003-09-01 02:18) [5]

Удалено модератором


 
Е-Моё имя ©   (2003-09-01 09:28) [6]

Удалено модератором



Страницы: 1 вся ветка

Текущий архив: 2003.09.11;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.013 c
8-33688
tima
2003-05-16 18:37
2003.09.11
Wavelet сжатие


4-33843
Murat
2003-07-12 19:06
2003.09.11
Как удалить кусок файла?


6-33715
FireMan_Alexey
2003-06-26 16:30
2003.09.11
Помогите избавиться от ошибки (Socket error 10065)


3-33449
Silla
2003-08-20 13:16
2003.09.11
Grid от QuantumGrid


8-33691
volodya_
2003-05-14 17:34
2003.09.11
mp3 ->wav и обратно