What's up everyone, Hoping to get some help on an issue regarding some date formatting.
We have a page that we’re going to use as a way to display a quick summary of blog posts based on a custom dataset: https://saidareales.wixsite.com/fidi-2018/events-2. The page actually works as expected, but we’re running into an issue trying to format the date.
We found this article: https://support.wix.com/en/article/using-wix-code-to-format-dates which is supposed to help us format the date into a nicer format, however when we run the code we get an error saying "TypeError: Cannot read property 'toLocaleDateString' of undefined”.
When I try to debug and just console.log the $w('#dataset1').getCurrentItem, it comes back as null. It seems like it thinks there's no items in the dataset even though the information displays properly.
Any help would be greatly appreciated,