Date function


I am using date function to display a date and same date i use to display on another page but in string format.

But it not working properly .

I date is update from page 1 it should also update on page 2 where it is displaying in string format.

update is working but if select date after 2040 then it not displaying the correct date

for example:

if i select 05/13/2026 it is displaying May 13, 2026

but if i select

08/14/2041 it is displaying January 01, 1970

PLz help me.

Where do you make date selection?