Windows中菲律宾和加拿大的日期时间格式问题 [英] datetime format issue for Philippines and Canada in Windows

查看:840
本文介绍了Windows中菲律宾和加拿大的日期时间格式问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Team,



我们要求在Windows操作系统中为英语(菲律宾)选择不同的日期格式 - >区域日期时间格式,但我们只看到Shortdate中的2个选项,默认选择是dd / MM / yyyy。我们已经尝试通过
修改短日期点击其他设置到M / dd / yyyy并保存,但问题是当我们再次打开Region并选择英语(美国)并保存然后再次选择返回英语(菲律宾),我们为英语(菲律宾)保存的格式
默认情况下不会将其恢复为原始格式为dd / MM / yyyy。有没有什么办法可以为英语(菲律宾)和英语(加拿大)添加更多自定义日期格式,并选择默认格式。



当我们改变文化时这是必需的在我们的.Net应用程序到en-PH中,日期显示为dd / MM / yyyy格式。但是,要求是en-PH,日期格式应该是M / dd / yyyy。 



这对我们非常关键,请帮助我们提供一些解决方案。



谢谢&此致,



Ajit Kumar Subudhi,




Hello Team,

We have a requirement to select different date formats for English(Philippines) in Windows OS -> Region Date time format, but we see only the 2 options from Shortdate and the default selection is dd/MM/yyyy there. We have tried to modify the short date by clicking on Additional settings to M/dd/yyyy and saved , but the issue is when we again open the Region and selects English(United States) and saves and then again selects back the English(Philippines) , the format which we have saved for English(Philippines) as default is not there it is reverted back to original as dd/MM/yyyy. Is there any way we can add more custom date formats for English(Philippines) and English(Canada) and select as default.

This is required as when we change culture in our .Net application to en-PH, the date is showing as dd/MM/yyyy format. But, the requirement is for en-PH , the date format should be M/dd/yyyy. 

This is very critical for us, please help us in providing some solutions.

Thanks & Regards,

Ajit Kumar Subud


推荐答案

你看到的是一个演示文稿。 DateTime本身是一个结构(Int64),它包含从100th纳秒开始的刻度值,从1/1/1 0开始:0:0 数数。它具有无穷无尽的属性和方法来显示许多表示中的刻度,包括
正在使用或已设置的文化。 
What you see is a presentation. The DateTime itself is a struct (Int64) which contains as value a tick from 100th nanoseconds which start at 1/1/1 0:0:0  counting. It has endless properties and methods to show that tick in many representations, including the culture which is in use or is set. 


这篇关于Windows中菲律宾和加拿大的日期时间格式问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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