Date operation ASP and SQL server 2005 By C-Sharp Guru Printer Friendly Version View My Articles 10 Points |  |
Example for Date operation ASP and SQL server 2005 |
This examples shows the substraction, relational operations with dates.
test = date()
testmonth = month(test) - 6
testd = month(testmonth) & "/" & day(test) & "/" & year(test)
testyear = year(testd)
If month(testd) > month(test) then testyear = year(testd) - 1 End if
testdate = month(testd) & "/" & day(testd) & "/" & testyear
response.write test & "<br>" response.write testd & "<br>" response.write testdate & "<br>" |
| Biography |
| I am System Programmer. I would love to do research oriented works on performance, securities and system programming. I am also interested in LINUX Kernel Programming. |
| |
| Article Discussion: Date operation ASP and SQL server 2005 |
| C-Sharp Guru posted at 21-Oct-08 09:34 |
| Original Article |
 |
|