日历asp.net 3.5中的动态日期格式 [英] Dynamic Date Format in calendar asp.net 3.5

查看:90
本文介绍了日历asp.net 3.5中的动态日期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在asp.net 3.5日历中设置日期格式?

我需要动态方式

thks

How to set Date Format in calendar asp.net 3.5?

I need it in Dynamic way

thks

推荐答案

日历中的日期格式是什么意思?如果您正在谈论格式样式,请看这里:如何:格式化日历Web服务器使用样式的控件元素 [ ^ ]

如果您需要以特定格式显示日期,请尝试使用其"ToString"属性.日期对象对此有重载.

如果您正在谈论日期选择器,则也可以在此处设置日期格式.
使用类似以下的控件:日历演示 [
What do you mean by Date format in Calendar? If you are talking of format styles look here:How to: Format Calendar Web Server Control Elements Using Styles [^]

If you need to show date in a specific format, try its ''ToString'' property. Date objects has overloads for it.

In case, you are talking of a datepicker, you can set the date format there too.
Use controls like: Calendar Demonstration[^]


这篇关于日历asp.net 3.5中的动态日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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