might be interesting to use Date.parse for this