made date converter smarter