Made the date thing much shorter

It can be much shorter if you use a SimpleDateFormat