Your question answers itself 😉 If og_date contains the date, it’s probably a string, so og_date.value is undefined.
Simply use og_date.split('-') instead of og_date.value.split('-')
Your question answers itself 😉 If og_date contains the date, it’s probably a string, so og_date.value is undefined.
Simply use og_date.split('-') instead of og_date.value.split('-')