如何在C#标签中获取阿拉伯语的系统时间 [英] How to get system time in arabic in C# label

查看:76
本文介绍了如何在C#标签中获取阿拉伯语的系统时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!有谁能告诉我如何用c#标签获得阿拉伯语的系统时间



我尝试了什么:



i我没有尝试任何东西,但我得到系统日期时间,但我希望这在阿拉伯语

Hello Guys! can anyone please tell me how to get system time in arabic in c# label

What I have tried:

i am not trying any thing but i am getting system date time but i want this in arabic

推荐答案

中渲染字符任何语言都要求您在系统上安装这些语言资源,并且需要使用适当的WindowsCultureInfo类实例(特定于语言的软件上下文)来显示文本:[ ^ ]。另请参阅:[ ^ ]。



这里有一个使用阿拉伯文化信息(Hijri日期系统)的代码示例:[ ^ ]
Rendering characters in any language requires your having those language resources installed on your system, and you need to use the appropriate Windows "CultureInfo" class instance (language specific software context) to display text: [^]. Also, see: [^].

There's a code example here using the Arabic CultureInfo (Hijri date system): [^]


这篇关于如何在C#标签中获取阿拉伯语的系统时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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