客户端和服务器之间的日期格式匹配 [英] Date Format match between client and server

查看:110
本文介绍了客户端和服务器之间的日期格式匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ASP Net中通过AJAX发布一个客户端到服务器的对象,它也包含date属性.MY Machine的时区在字符串中使用日期格式** MM / dd / yyyy **而我的服务器时区使用格式** dd / MM / yyyy **。我仍然想知道
如何正确地进行转换并且它按预期结果运行并保存在数据库中。

解决方案

请在
asp.net论坛
上发布asp.net问题

Am posting an object from client to server via AJAX in ASP Net which consist of date Property too.MY Machine's time zone uses the date format **MM/dd/yyyy** in string whereas my server time zone uses the format **dd/MM/yyyy**.Am still wondering that how do the conversion takes place properly and it works as expected result which gets saved in the database.

解决方案

Please post asp.net questions under asp.net forums


这篇关于客户端和服务器之间的日期格式匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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