印度时间的日期时间 [英] Date Time in Indian Formet

查看:124
本文介绍了印度时间的日期时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部,
我的服务器在美国,但是我在印度使用该应用程序,所以我的时间延迟了.例如,我得到了Afternnon那天的实际日期.您能帮我吗,是否有任何配置可以控制该问题,或者任何服务器端代码?..

非常紧急,请帮助我,

Ha all ,
My server is in US, but i am using the appliation in India so i am getting delay in Time. For example i got the actual date of the day afternnon.. Can you please help me, Is there any config is there to control this proble, Or any server side code?..

Very urgent Please help me,

推荐答案

您应该让您的美国雇主知道您对此任务太愚蠢.有人告诉您如何执行此操作,但是您一直在问.没有其他答案.
you should let your US employer know that you''re too stupid for this task. You''ve been told how to do this, and yet you just keep asking. There are no other answers to be had.


您可以在应用程序级别或页面级别设置配置.
例如,将此代码添加到Page_Load
You can set the configuration at Application level or Page level.
For ex, add this code to Page_Load
CultureInfo cul = new CultureInfo("hi-IN");
System.Threading.Thread.CurrentThread.CurrentCulture = cul;



在Google/Bing中搜索".Net中的文化"和"CultureInfo类"以了解更多信息.

:thumbsup:



Search Google/Bing for "Culture in .Net" and "CultureInfo class" to know more.

:thumbsup:


这篇关于印度时间的日期时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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