How to identify the date from an element

i have an UI element which is todays date written in 16.03.22 , how to ensure that this is equal to todays date.

In General:

grafik
we parse the string and can compare it with todays date

Even when possible to do it on string base like below, we would recommend the date parse approach:
grafik