First and Last day of the month

First and Last day of the month

Hello, 

I have a form, where there are two date fields:
1st field) From Date
2nd field) To Date

I would like On Loading the form the current values of these fields to be:
From Date = The 1st day of the current month
To Date = The last day of the current month

How I could write this script??