I have two dates in a specific format (strings). I need to verify if the current date is lower than the max allowed date:
var date_current = '03_25_2022';
var date_max = '03_30_2022';
The format will always be d_m_Y. Since these are technically strings, what would be the best way to compare them as dates?