add toPattern()
add DateTime and related test class