Hi All,
I have a date in the format 'YYYYMMDD'. It will be the last day of a month for eg. 20080831 now I need to derive two dates from this date one is Start date of next month i.e. "20080901" and End Date "20080930".
I searched in the forum and found out the solution for parallel version. The functions mentioned are not in Server version.
Anyone has done this is Server version or if any pointers??
Thanks in Advance.
Month End Date
Moderators: chulett, rschirm, roy
Re: Month End Date
hello please try this, may be some more efficient methods are also available
for first day of next month for your input
oconv( ( MONTH.first(MONTH.TAG(ICONV("20080831","DYMD") + 1))),"D-YMD[4,2,2]").---->2008-09-01
for last day of month for given input
oconv( ( MONTH.LAST(MONTH.TAG(ICONV("20080831","DYMD") + 1))),"D-YMD[4,2,2]")---->2008-09-30
for first day of next month for your input
oconv( ( MONTH.first(MONTH.TAG(ICONV("20080831","DYMD") + 1))),"D-YMD[4,2,2]").---->2008-09-01
for last day of month for given input
oconv( ( MONTH.LAST(MONTH.TAG(ICONV("20080831","DYMD") + 1))),"D-YMD[4,2,2]")---->2008-09-30
Re: Month End Date
Funny, I searched for "month end date" and was able to find several Server posts on the subject.Amit_111 wrote:I searched in the forum and found out the solution for parallel version. The functions mentioned are not in Server version.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 11
- Joined: Mon Feb 25, 2008 5:53 am
- Location: Hyderabad
-
- Participant
- Posts: 11
- Joined: Mon Feb 25, 2008 5:53 am
- Location: Hyderabad