Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3441

Previous month,Current Month and Next Month

$
0
0

Hi, I want to arrive  current month next month and previous month based on the system date . This I achieved like below Current Month formatdate("currentmonth";"MM") Next Month =FormatDate(RelativeDate(LastDayOfMonth(CurrentDate());1);"MM") Previous month =FormatDate(RelativeDate(CurrentDate();(-1)*DayNumberOfMonth(CurrentDate()));"MM") But i want current month starts  from 26 of the Previous  month Ex : current month is September start date of the September is 26 of august and end date of the month is 25 of sep (Period ) Period’s start on the 26th of the month and end on the 25th except for Period 1 and 12.  above period 1 and 12 should like below period 1 (jan) start date 1 jan and end date jan 25 Period 12 December  start date in November 26 end date is 31 December.


Viewing all articles
Browse latest Browse all 3441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>