Solve the problem for safari that new Date('2012-1-2‘) is invalid

1. solve the problem for safari that new Date('2012-1-2') is invalid
2. add getRegularMonth and getRegularDay function