fixed date formatting and added support for partial date information