Change mainclasses to list and parse different date format