Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

How to compare dates. Find similar branches


DerZky   (2001-12-18 19:54) [0]

Hello. The task is this: when you first start the program, you need to write the launch date in the registry, and in subsequent ones, calculate an Integer variable between today's date and the date recorded in the registry. If you can answer with the code. Thank.



Anatoly Podgoretsky   (2001-12-18 20:39) [1]

Wow :-)
A variable of type TDate {Time} of type Double, where the whole is the number of days, do you really need an example?



DerZky   (2001-12-19 19:16) [2]

So what?
procedure TForm1.Button1Click (Sender: TObject); var SD, SD2: String; D, D2: TDateTime; D3: Double; begin DateSeparator: = "."; SD: = "30.10.00"; SD2: = "01.12.00"; D: = StrToDate (SD); D2: = StrToDate (SD2); D3: = D2-D; end;



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.55 MB
Time: 0.021 c
We answer immediately.
Arick
2001-10-31 09:20
2002.01.08
how to find the name of the loaded Dll


We answer immediately.
DenKop
2001-12-18 14:38
2002.01.08
Creating Help s


We answer immediately.
Dimich
2001-11-01 14:50
2002.01.08
Books on API in Russian


We answer immediately.
HELP ME PLZ
2001-12-15 18:22
2002.01.08
Dll s


We answer immediately.
Kirill
2001-10-03 18:33
2002.01.08
IE context menu





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish