The issue here is that this is a pretty poorly designed API (e.g., in addition to the fact that this date representation is ambiguous, it even looks like there’s an extra space in that first “date” that is not present in the second “date”).
So what happens here is that Bubble’s date parsing, which just relies on JavaScript is doing something like:
Which is pretty much the best it can do.
You could consume those fields as text and then do the parsing yourself (which would involve a bit of code) either in-page (if that’s acceptable for your application – probably not) or in a server-side workflow (which probably is something you don’t want/need to do either).
It’s possible that this API was designed such that the “dates” are not intended to be consumed as date objects but as text, but they are not particularly web-friendly, are they?
One thing that is for sure is dates are important part of this API since this API is sending me meter readings for electricity usage and the whole idea of this app iam building is to compare electricity usage for different dates.
When it comes to the design of this particular Api it goes like this:
I get meter readings as a CSV file from the energy company ( they will have their own api soon)
2.I uploaded to google sheets
3.I used https://sheet.best/ to convert it to Json api
So design flaw could have come at one of the points above.
Cool. Glad that helped. BTW, if you’re in contact with anyone at your power company involved in designing their REST API, put in the request that they expose the date fields in ISO 8601 format (which is probably what they would do, but it never hurts to suggest!) and that would alleviate this problem when you move to getting this data directly from their service via API calls.