Sep 29, 2005 #1 PatelRam Programmer Aug 20, 2003 87 US Friends...!!! How do I find Previous month's first and last day from current date. Thanks, Ram
Sep 30, 2005 #2 blom0344 Technical User Mar 20, 2002 3,441 NL Last day of last month: SELECT CURRENT DATE - (DAY(CURRENT DATE) DAYS) from SYSIBM.SYSDUMMY1 Ties Blom Information analyst Upvote 0 Downvote
Last day of last month: SELECT CURRENT DATE - (DAY(CURRENT DATE) DAYS) from SYSIBM.SYSDUMMY1 Ties Blom Information analyst
Sep 30, 2005 #3 blom0344 Technical User Mar 20, 2002 3,441 NL First day of last month: SELECT (CURRENT DATE - (DAY(CURRENT DATE) DAYS)) - 1 MONTH + 1 DAY from SYSIBM.SYSDUMMY1 Ties Blom Information analyst Upvote 0 Downvote
First day of last month: SELECT (CURRENT DATE - (DAY(CURRENT DATE) DAYS)) - 1 MONTH + 1 DAY from SYSIBM.SYSDUMMY1 Ties Blom Information analyst
Sep 30, 2005 Thread starter #4 PatelRam Programmer Aug 20, 2003 87 US Thanks Ties Blom Upvote 0 Downvote