I want to make a calendar using date plugin, Problem I'm facing here is How do I get First & Last day of the current month. Somehow I'm able to get First day of the first week but how do I get last day of last week?
When using date.getday(date.now) you will get the current day of the week, 0 = sunday so 0 is the last day of the week.
EDIT: I noticed now that you ment first and last day of the MONTH, i will check it out and come back xD sry its early.
EDIT AGAIN: So you could just add variables to make it easy, where you use date.getmonth(date.now) and get the current month ,0 - january, 11-decemeber
Then do like if currentmonth = 0 then lastday = 31 , if currentmonth=1(feb) then lastday = 28