To my tech IT Anons out there.
So I was working on a JavaScript project at work. Needed to fix a date issue on our website.
Dates can be a pain in the ass to code against.
So I wanted to see what JavaScript based packages are out there. MomentJS is a popular module.
So when I looked at their website.
WHAT THE F!!!
Look at the PROPAGANDA at https://momentjs.com/
It's right in front and at the bottom of the page!!!
Basically we had a listing of dates coming back from our API service that looked like
Array[0] = "10/01/2021" Array[1] = "10/02/2021" Array[1] = "10/03/2021"
So when we did
let dateValue = new Date(Array[0]);
This worked for all devices but IOS (Apple).
So we had to add a default time to it.
So after we got the data. We had to append something like
Array[0] = "10/01/2021" + " 00:00"; Array[1] = "10/02/2021" + " 00:00" Array[1] = "10/03/2021" + " 00:00";
Yeah.. we had to do this to get it out there. The business was waiting.