renamed method dateFormat to dateToFormattedString()
added method formattedStringToDate()