System.DateTimeFormatDateTime(date[,namedformat])或者用字串组合起来
解决方案 »
- |zyciis| VS2010安装报错:Error: Installation failed for component 急救解决方法,谢谢
- 急!GridView中多表删除问题!
- 静态页面放到vs里面发生怪事
- 很急的问题.在线等候
- 关于timer控件的使用
- 请推荐一本asp.net的循序渐进的书-50分相送
- 提交数据并发问题,说明详细者多给分
- page中的方法
- WebPart的学习和部署问题
- 急啊 快帮帮我.
- 为什么我的电脑不能用<!--#include file="../inc/end.asp"-->这样的方法包含文件?即不能et ../开头!?
- 用vss管理asp.net出现下面的错误?50分相送
Month(date) 取得日期的月部分,型态为Integer
Minute(time) 取得时间内容的分部分,型态为Integer
Day(datetime) 依接收的日期参数传回日
Year(date) 依接收的日期参数传回年
string month=Convert.ToString(DateTime.Now.Month.ToString());//取得月
string day=Convert.ToString(DateTime.Now.Day.ToString());//取得日
string ymd=year+month+day;
string datestr;
datestr=System.DateTime.Now.Year.ToString()+System.DateTime.Now.Month.ToString()+System.DateTime.Now.Day.ToString()+
datestr=System.DateTime.Now.Year.ToString()+System.DateTime.Now.Month.ToString()+System.DateTime.Now.Day.ToString();
多谢各位!!!