convert string date to datetime format in Angular / Typescript and compare it with current date

Discussão em 'Angular' iniciado por ninjacode, Janeiro 18, 2025.

  1. ninjacode

    ninjacode Guest

    I'm new to angular and I need some help in datetime conversion. My datetime in string is Sat, 30 Apr 2022 00:00:00 GMT but I want to compare this date (only Sat, 30 Apr 2022) with current date.

    How do I fetch only date and convert it to datatime format in GMT and compare it with the current date?

    Continue reading...

Compartilhe esta Página