how can I show current date as default? my page is showing "january 2006" because I use another code that lists date for last 10 years.
You should try $fromDate = new DateTime(); $toDate = new DateTime();
$fromDate = new DateTime(); $toDate = new DateTime()