set dateTimeFormat if not set.
used trait's abstract functions to get/set properties from traits.
use abstract methods to suppress warnings; removed unused use statement.