从数据库出来的日期,需要格式化为"mm/dd/yy"
For Each dr as DataRow in ds.Tables(0).Rows Response.Write(dr("CreateDate")) Next
Greg.. 11
string.Format( "{0:MM/dd/yy}", dr("CreateDate") )
编辑:如果dr("CreateDate")是DBNull,则返回"".
string.Format( "{0:MM/dd/yy}", dr("CreateDate") )
编辑:如果dr("CreateDate")是DBNull,则返回"".