I am trying to get the year from the system date but I keep getting a syntax error. I am using this to get the system date year:
year (today ())
Any help would be appreciated.
Thank You,
rjoshi2
Code
DateTime ldt_date
ldt_date = DateTime( Date("Dec-31-2099" , Now())
if year ldt_date) = year (today ())then
UPDATE PROGRAM
SET YTD_NO = nvl( YTD_NO , 0 ) + 1,
YTD_AMT = nvl( YTD_AMT , 0 ) + :ll_ramount ;
end if
year (today ())
Any help would be appreciated.
Thank You,
rjoshi2
Code
DateTime ldt_date
ldt_date = DateTime( Date("Dec-31-2099" , Now())
if year ldt_date) = year (today ())then
UPDATE PROGRAM
SET YTD_NO = nvl( YTD_NO , 0 ) + 1,
YTD_AMT = nvl( YTD_AMT , 0 ) + :ll_ramount ;
end if