Back to questions
JuniorTheoryCommon
What does the program print (lines separated by spaces)?
Продажа = '20241130';
Срок = Продажа + 3;
Сообщить(Формат(Срок, "ДФ=dd.MM.yyyy"));
Сообщить(Формат(Дата(2024, 12, 3) - Продажа, "ЧГ=0"));30.11.2024 259200
- Expecting
Продажа + 3to move the date by three days: a date adds seconds, so three days are3 * 86400 - Expecting the difference of two dates in days: it is in seconds, and days come from dividing by 86400
- How do you add three days to a date?
- How do you count calendar days between two dates that carry a time?