Topic: Date Calculations / Functions

Forgive me, but I'm still new at this. I looked through this forum and on Delphi Basics for Pascal Date routines. I need to add days to dates. Delphi Basics says that IncDay can be used to increment by days, but apparently MVD does not like it. How does one do date calculations? And also, are there any functions for dates falling in a period such as "This Week', "Next Week", "This Month", "Next Month", "This Year", "Next Year", etc?.

Re: Date Calculations / Functions

To add day you can just add +1:

Form1.DateTimePicker.DateTime := Form1.DateTimePicker.DateTime + 1;


But I don't know nothing about functions such as  "This Week', "Next Week", "This Month", "Next Month", "This Year", "Next Year"

Dmitry.

Re: Date Calculations / Functions

I know it is possible with SQLite: https://www.sqlite.org/lang_datefunc.html

Re: Date Calculations / Functions

Hello ehwagner,

If you search my posts, you'll find some talking about Dates manipulations.

I did a few projets on the subjet of finding differences between two dates, and this involved incrementing dates.

Might not be exactly what you're looking for, but maybe a good start ?

Cheers

Mathias

I'm a very good housekeeper !
Each time I get a divorce, I keep the house

Zaza Gabor