Porting install file for date-api

@vijaycs85 Yyep. Function is already declared as static & have replaced it with self::getDefaultDate.