how do I get the JavaScript date version of this: "Saturday 5th November, 2016"? -


being scouring net javascript date version of following: saturday 5th november, 2016 i've tried looking @ day , month arrays... im kinda stumped. particular date format got php date format of: date("l js f, y"). there javascript version of - (complete date suffix)? tips great. cheers.

the closest format, try this

var d=new date; var str=d.todatestring(); console.log(str); 

it output "sun nov 13 2016"


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -