Function EnMonthName(vDate) monthNames = Split(",Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec", ",") EnMonthName = monthNames(Month(vDate))&day(vDate)&","&year(vDate) End Function
调用的时候: EnMonthName(rs("updatetime"))
js方式
<!DOCTYPE html> <html> <body> <script> var d = new Date(); var mystr=d.toString() document.write(mystr.substring(3,7)); </script> </body> </html>
年月日格式化
<%=year(now)%>/<%=month(now)%>/<%=day(now)%>
评论前必须登录!
注册