troubleshooting Question

how to convert date format in jquery

Avatar of ocean O
ocean O asked on
jQuery* datetime
3 Comments1 Solution28 ViewsLast Modified:
Hi,
I have a question about convert a date in jquery.
I have a date response from api, the value is : "1596499223000", but I need convert it to a normal Date format.
I wrote code like this:  newDate = new Date(array[0].events[i][index] + 5 * 60 * 60 * 1000);
but it said that the newDate is "Invalide Date".
Any Inputs are welcome!

But the way, for my another question "How to find an icon in fontawesome". I had figured out a way to solve to problem. But I forgot to post the answer. Since the question already closed. So I post it here. I created a new CSS item with the image as content.
.le-lab::after {

  1.     display: block;
  2.     content: url(./images/icon.png);
  3.     transform: scale(.25);
  4.     height: 10px;
  5.     width: 10px;

}


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros