DateTime.Now.Hour 只能获取到小时这个数字 如09 所以行不通DateTime.Now.ToString().Substring(0, 9);Substring(0, 9)寓意为从0开始 截取9个字符 ,即2010-08-09
DateTime.Now.Hour