Posts by Leonardo Noro Pereira • 26 points
1 post
-
1
votes1
answer27
viewsA: How to format date Apr 17 1995 12:00:000AM for 1995-04-17 in java script?
Creates a function to format the date. Handling dates in Javascript can be a bit boring, so you can do so: function formatDate(sqlDate) { var date = new Date(sqlDate.substring(0, 11)), year =…
javascriptanswered Leonardo Noro Pereira 26