Hi everyone. I built a cheesy mega millions app that a user can get random numbers from every time they click a button. Its pretty basic but I am new to this and wanted to try something on my own. There is a silly story as to why I had this for an idea to build but that’s for another time.
Another thing the app does is it connects to an api which has information about every drawing all the way back to 2002.
On to the question… the api gives json data and one of the variables is a date. My problem is that the date comes back as a string and looks like this “2021-06-25T00:00:00.000”.
My entire app works including the date but I can’t figure out how to change that into a better readable form like " 06/25/2021 " or even anything similar to a human readable form lol. I found some easy ways to format Date() but this is coming to me as a string and not a date.
I am hoping someone here is super smarter than I am and can help me.
Thanks in advance. Let me know if you need more information.