在c#中我需要显示2016年2月26日的日期格式 [英] In c# i need to display the date format 26 feb 2016

查看:56
本文介绍了在c#中我需要显示2016年2月26日的日期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在c#中我需要显示日期格式2016年2月26日



我尝试过:



i使用的代码是

Convert.ToDateTime(Eval(CreatedDate)))。ToString(dd MM yyyy)%

in c# i need to display the date format 26 Feb 2016

What I have tried:

i have using the code is
Convert.ToDateTime(Eval("CreatedDate"))).ToString("dd MM yyyy")%

推荐答案

你必须使用这种格式的月份字符串



dd MMM yyyy
You have to use this format for month string

dd MMM yyyy


这篇关于在c#中我需要显示2016年2月26日的日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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