I need a function for delphi 5 that I can sum days, months or years. Something like dateadd of mssql.
Something like this way:
dateadd(data: tdatetime; type: string; value: integer): Tdatetime;
type = 'mm','dd','yy'
Data: is the original date
it type = 'mm' only the month will have to be add and so on
value = the value to add
this function must be work with - and +