From my backend I get an object with date of birth that is a long value.For frontend I use angular 4 (typescript) I would like to extract year from that date of birth to be able to calculate age but I have no idea how to parse long to some kind of Date object in typescript. Could you give me a hint where to look for information?
Maybe something along lines of:
a: Number;
let a = new Date(762861060).getFullYear();
Thank you for help