Angular time comparison in Typescript

Discussão em 'Angular' iniciado por Madasu K, Dezembro 12, 2024.

  1. Madasu K

    Madasu K Guest

    In my angular application, I need to check if the current time is greater than 3PM. I am getting current time using Date.now() and in constructor I have, so I am getting updated time for every minute,

    setInterval(() => {
    this.today = Date.now();
    }, 1);


    Now I need to check if the current time is greater than 3 PM.

    Continue reading...

Compartilhe esta Página