parse all dates and get differences in millis between them
added functionality for min/max