added method to parse pot to date