Batman Ninja

Released in 2018, Batman Ninja is an animated film and sees Batman and his foes going back in time thanks to a time machine created by Gorilla Grodd and they travelled back to ancient Japan.
A fascinating premise that this film explores with Batman fighting his foes mainly the Joker back in time in Japan and how it all played out in the end on Batman returning to his own time.