removed method in helper and used strftime method to parse date in view