Two string date comparisons for ASP

xiaoxiao2021-03-06  64

NowDate = Date ()

NowDatez = split (nowdate, "-")

nowdatey = nowdatez (0)

NowDatem = nowDatez (1) -1

DateFinal = cstr (nowDatey) "-" CSTR (nowDatem)

Date2 = CSTR (RS ("Year")) "-" CSTR (RS ("Month"))

Cha = Datediff ("D", Formator (DateFinal), Formator (Date2) * 1

ASP function

转载请注明原文地址:https://www.9cbs.com/read-89829.html

New Post(0)