在c#.net windows应用程序中使用日期 [英] working with dates in c#.net windows application

查看:71
本文介绍了在c#.net windows应用程序中使用日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我需要在我的应用程序中以dd-mm-yy foramt显示日期。我需要以相同的格式存储在数据库上的相同日期。请提供解决方案。在此先感谢。



问候,

Kiran Ganga

Hi,

I need to display the date in dd-mm-yy foramt in my application. Same date i need to store on database in the same format. Please provide the solution. Thanks in advance.

Regards,
Kiran Ganga

推荐答案

参见格式化特定文化的日期和时间 [ ^ ]



此参考移至以下链接。

http ://msdn.microsoft.com/en-us/library/vstudio/5hh873ya(v = vs.100).aspx [ ^ ]


这应该有所帮助:< a href =http://www.csharp-examples.net/string-format-datetime/> http://www.csharp-examples.net/string-format-datetime/


这篇关于在c#.net windows应用程序中使用日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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