Change Date() Return Value programatically in Classic ASP -
i doing testing web application . , generate fake server date , not affect server date production server eg:
date() // server date 2013/05/21 what achieve , after programming...
date() // server date 2013/02/28 how achieve in asp? thanks
suggested others logical choice write own function. i'd point trick.
in vbscript, can re-write built-in functions (unfortunetaly i've no official document @ moment).
luckily, date() 1 of them.
user defined date() function works.
assume need date 82 days earlier server date.
function date() date = cdate(int(now) - 82) end function response.write date()
Comments
Post a Comment