Replaced deprecated Date instantiation with proper date formatter parse call