Adding compilation date to the code

Hi
thanks for the service
I’m new to the electron
I write in Angular Electron
I have a question
I need to save the date I compile the project in main.ts
How do you do that?
Thank you