Nov 14, 2003 #1 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!!!
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!!!
Nov 14, 2003 #2 PowerObject Programmer Jul 30, 2002 204 US 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! ----------------------------------------- http://Groups.Yahoo.com/group/PowerObjectPowerBuilder / PFC Developers' Group Upvote 0 Downvote
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! ----------------------------------------- http://Groups.Yahoo.com/group/PowerObjectPowerBuilder / PFC Developers' Group