10月
02
02
How to compare date and time (datetime) deadline ?
Posted by YuanYuanI’m never coding ASP progarm before. some reason I need to modify the code.
I think the ASP not to hard for me.
request: compare date time expire or deadline ?
I google it, no good way to do or code to complicated. last I find easy function. CDate to do this.
- expire = "2009/10/02 3:08:20 PM"
- if (Now() > CDate(expire)) then
- response.write("3over time, thanks.")
- else
- response.write("3still continued...")
- end if
yes, just CDate to solve this request.
Add A Comment