I am facing a challenge with extracting the year from a date of birth value stored as a long in an object retrieved from the backend. I am using Angular 4 (TypeScript) for the frontend and I would like to convert this long value into a Date object in order to calculate the age. However, I am unsure about how to accomplish this parsing in TypeScript. Can anyone provide guidance on where to find relevant information?
Perhaps something similar to:
a: Number;
let a = new Date(762861060).getFullYear();
Thank you in advance for your assistance.