I created a rest service to return a date.
I use Java on the back end and AngularJS on the front end.
My code in java is something like this:
SimpleDateFormat myFormat= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date myDate = myFormat.parse("1900-01-01 12:00:00");
return myDate;
And when I get this value from the service I display it on the front end with this code:
<div>
<h4>{{myDate | date:'yyyy-MM-dd HH:mm:ss'}}</h4>
</div>
The page shows "1899-12-31 23:56:16".
I tried again but with the current date and it shows normally in the system.