add setFormatDate method