converter for php date format to joda date format
https://github.com/jtwig/jtwig/issues/250
fix semantic error for checking on double type
add check on integer type
https://github.com/jtwig/jtwig/issues/258