需要代码snipet将mm / dd / yy转换为dd / mm / yy [英] Need of a code snipet which converts mm/dd/yy to dd/mm/yy

查看:96
本文介绍了需要代码snipet将mm / dd / yy转换为dd / mm / yy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的客户要求将日期

格式从mm / dd / yy更改为dd / mm / yy。如果有的话身体可以帮我解决

这方面非常紧急。



问候,

Santanu

Hi ,
I am stuck with a requirement from my client to change the date
format from mm/dd/yy to dd/mm/yy .If any body can help me out with
this regard as its very much urgent.


Regards,
Santanu

推荐答案

4月22日,11:02,santanu mishra< mishra.sant ... @ gmail.comwrote:
On 22 Apr, 11:02, santanu mishra <mishra.sant...@gmail.comwrote:



我的客户要求将mm / dd / yy更改为日期

格式为dd / mm / yy。如果有任何人可以帮我解决

这方面非常紧急。


问候,

Santanu
Hi ,
I am stuck with a requirement from my client to change the date
format from mm/dd/yy to dd/mm/yy .If any body can help me out with
this regard as its very much urgent.

Regards,
Santanu



我使用:
http://www.koders.com/javascript/fid...4E48720E2.aspx


santanu mishra meinte:
santanu mishra meinte:



我的客户要求更改日期

格式从mm / dd / yy到dd / mm / yy。如果有任何人可以用

来帮助我这个方面非常紧急。
Hi ,
I am stuck with a requirement from my client to change the date
format from mm/dd/yy to dd/mm/yy .If any body can help me out with
this regard as its very much urgent.



未经测试:


函数convert(dateString){

var new = dateString.split(" /");

返回new [1] +" ; /" + new [0] +" /" + new [2];

}


Gregor

-
http://photo.gregorkofler.at ::: Landschafts - und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur fürdenalpinen Raum

Untested:

function convert(dateString) {
var new = dateString.split("/");
return new[1]+"/"+new[0]+"/"+new[2];
}

Gregor
--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum


Gregor Kofler写道:
Gregor Kofler wrote:

santanu mishra meinte:
santanu mishra meinte:

>我的客户要求将日期
格式从mm / dd / yy更改为dd / mm / yy。如果有任何人可以帮我解决这个问题,那么这非常紧迫。
> I am stuck with a requirement from my client to change the date
format from mm/dd/yy to dd/mm/yy .If any body can help me out with
this regard as its very much urgent.



未经测试:

函数转换(dateString){

var new = dateString.split(" / ");

返回新[1] +" /" + new [0] +" /" + new [2];

}


Untested:
function convert(dateString) {
var new = dateString.split("/");
return new[1]+"/"+new[0]+"/"+new[2];
}



如果这不起作用,请尝试使用

其他名称替换变量名new。如果这是一个问题,我不会感到惊讶。

If that doesn''t work, try replacing the variable name new with a
different name. I wouldn''t be surprised if that''s a problem.


这篇关于需要代码snipet将mm / dd / yy转换为dd / mm / yy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆