Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date type

Status
Not open for further replies.

Negator

Programmer
Oct 4, 2003
33
RU
Hello friends!!

I have a date variable which contains some date value. I need to increase this value on one day. How to do this?

Thank you!!!
 
You should use the RelativeDate() PowerScript function. Try something similar to this:

/////////////////////////////////////////////////

date ld_Date
//
ld_Date = dw.Object.DateColumn[ row ]
ld_Date = RelativeDate( ld_Date, 1 )
dw.Object.DateColumn[ row ] = ld_Date

/////////////////////////////////////////////////

---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top