如何根据像澳大利亚和加拿大这样的国家来获取日期 [英] how to get date according to country like austraila and canada

查看:106
本文介绍了如何根据像澳大利亚和加拿大这样的国家来获取日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何根据国家如澳大利亚和加拿大获取日期,

我只希望约会。



谢谢

how to get date according to country like austraila and canada,
I want only date.

thanks

推荐答案

这没有意义,你无法按国家/地区获取日期。您必须从日期(和时间)开始,然后将其向前或向后调整到所需的时区。然后,您可以根据需要显示日期部分。您没有说明您使用的语言或框架,但它们都支持日期和时间,因此您应该研究有关该主题的文档。
That does not make sense, you cannot get a date by country. You have to start with a date (and time) and then adjust it forwards or backwards into the required timezone. You can then display the date part only as required. You have not indicated what language or framework you are using, but they all have support for dates and times, so you should study their documentation on the subject.


实现CultureInfo以获取设置为每个国家
Implement CultureInfo to get the settings as per the country


这篇关于如何根据像澳大利亚和加拿大这样的国家来获取日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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