hidrau
asked on
function to work with data
Hello guys
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 +
thanks
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 +
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you're welcome:)
ziolko.
ziolko.
ASKER
thanks very much