I have formulas for both methods.
Given only a date as input:
- First day of month
Date
-
Day(Date)+1
- Last day of month
Date-Day(Date)+45
-
Day(Date-Day(Date)+45)
Given Year and Month(numeric) as inputs:
- First day of month
((Now
+
CEILING((Year-YEAR(Now))*365.2424)
-
DAY(Now)+15)
-
(MONTH(Now)-Month)*30)
-
DAY((Now
+
CEILING((Year-YEAR(Now))*365.2424)
-
DAY(Now)+15)
-
(MONTH(Now)-Month)*30)
+ 1
- Last day of month
((Now
+
CEILING((Year-YEAR(Now))*365.2424)
-
DAY(Now)+15)
-
(MONTH(Now)-Month-1)*30)
-
DAY((Now
+
CEILING((Year-YEAR(Now))*365.2424)
-
DAY(Now)+15)
-
(MONTH(Now)-Month-1)*30)