Added a default callback function. Fixed bug when passing milliseconds for toDate.