迅腾网络>圈子>建站知识> asp 中如何只读取单独日期,月份,年份,而不读时间

asp 中如何只读取单独日期,月份,年份,而不读时间

热度:6560 / 2019-5-28 / 廊坊网站建设 / 建站知识

asp 中如何只读取单独日期,月份,年份,而不读时间

 

<%=year(rs("infotime"))%>-<%=month(rs("infotime"))%>-<%=day(rs("infotime"))%>

 

其中infotime是你数据库里面的代表日期的字段,你数据库里面的日期字段名称是什么就改成什么

显示格式为  2018-6-15