The ASP Date(), Time(), and Now() functions are used to return the date or time in various formats.
1/21/2025
Date, Time, and Now Functions | Results |
Date() | 1/21/2025 |
Time() | 11:50:20 PM |
Now() | 1/21/2025 11:50:20 PM |
formatDateTime(Date,0) | 1/21/2025 |
formatDateTime(Date,1) | Tuesday, January 21, 2025 |
formatDateTime(Date,2) | 1/21/2025 |
formatDateTime(Time,0) | 11:50:20 PM |
formatDateTime(Time,2) | 12/30/1899 |
formatDateTime(Time,3) | 11:50:20 PM |
formatDateTime(Now,0) | 1/21/2025 11:50:20 PM |
formatDateTime(Now,1) | Tuesday, January 21, 2025 |
formatDateTime(Now,2) | 1/21/2025 |
formatDateTime(Now,3) | 11:50:20 PM |
formatDateTime(Now,4) | 23:50 |