wrote a proper date conversion thing