How to get the first date and last date of the previous month using today's date?