added time and date setting in format of DateFormatter Class.