Javascript Date和JSON DateTime [英] Javascript Date and JSON DateTime

查看:96
本文介绍了Javascript Date和JSON DateTime的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Jquery函数getJSON的问题,该操作url不会触发,因为我传递的一个参数是一个JavaScript日期,但该操作需要c#DateTime ..



可以格式化JavaScript日期以使其兼容c#DateTime吗?

解决方案

我建议使用Datejs图书馆( http://www.datejs.com/ )。从我有限的经验来说,这太棒了。


I have a problem with Jquery function getJSON, the action url does not trigger because one of the parameter i am passing is a javascript date but the action expects c# DateTime..

Is it possible to format the Javascript Date to make it compatible for c# DateTime?

解决方案

I would suggest using the Datejs library (http://www.datejs.com/). From my limited experience with it it's fantastic.

这篇关于Javascript Date和JSON DateTime的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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