Working with dates and time in WIX Code?

Andreas, thank you, thank you, this worked!

Now… I have another date formatting question. I have 2 dates listed, 1 directly from the database (which I previously formatted using Liran’s code from this post ) then a second date, which is calculated from a date within my database (calculated using code from this article and reformatted using your code above)

So all of the code works correctly (see below), but my problem is that now both dates are formatted differently from one another:


Ideally, I’d like to see both as “Apr 18 2018” (or something similar), but at this point I’ll settle for just having them the same format as each other

Here’s the page code

And here’s the data.js from the backend I’m working with:

Any thoughts?

Thanks in advance :slight_smile: