Add getNth and dateToString