会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Nextsoft
But how could you live and have no story to tell!
访问统计
NextSoft
But how could you live and have no story to tell!
首页
新随笔
联系
订阅
管理
2012年8月29日
C#字符串转换为日期时间格式及其错误处理
摘要: 如:"20100101"转换成日期型?"20100101"转换成int型怎么转换??1、DateTime dt=Convert.ToDateTime("20100101".Substring(0,4)+"-"+"20100101".Substring(4,2)+"-"+"20071107".Substring(6,2)); int i=Convert.ToInt32("20100101");2、Convert.ToDateTime、Da
阅读全文
posted @ 2012-08-29 15:42 nextsoft
阅读(6285)
评论(0)
推荐(0)
编辑