I am working with a webservice that returns dates in the format 1530158400000. However, I need to display them in the format "2018-06-12" on my AngularJS UI. The response object from the webservice includes a "protected Date trdDate" field, which is correctly formatted as "2018-06-12" when queried using Hibernate. Despite this, the date appears as 1530158400000 when displayed on the UI.