Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
Try using Interval Datatype. I don't remember the exact systax but it'd be something like this,
Code:
DECLARE DAYS INT;
SET DAYS = (CURRENT_DATE) DAY;
If this does not work then subtract 1/1/<current_year> from current_date before casting it to Interval datatype. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum