dsuxcxqep31023992
dsuxcxqep31023992
2012-08-25 23:44

以Javascript格式输出日期作为字符串

  • date
  • string
  • php
  • tostring
  • javascript

could you please advice how to output 2012-08-11 in JavaScript as a string without it
showing the results as integer i.e. 1993. I have tried using the .toString() function but
that doesn't work - it stills output it as 1993.
I'm parsing the date 2012-08-11 to a JavaScript function via PHP.

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答