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.54 MB
Time: 0.021 c
1:22220
Kandyl
2001-12-16 15:10
2002.01.08
How to prevent deleting a folder without hanging in the tray?


7:22434
tomas2001
2001-09-24 14:04
2002.01.08
File transfer via modem


1:22019
Hex_for_delphi
2001-12-17 20:21
2002.01.08
How to write a trainer!


1:22053
greenrul
2001-12-18 19:29
2002.01.08
ANTIALSING for TTF fonts.


14:22343
Merlin
2001-11-02 14:17
2002.01.08
With laughter almost fell to the floor!





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 Spanish 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