The ASP Date(), Time(), and Now() functions are used to return the date or time in various formats.
1/13/2025
Date, Time, and Now Functions | Results |
Date() | 1/13/2025 |
Time() | 3:20:35 AM |
Now() | 1/13/2025 3:20:35 AM |
formatDateTime(Date,0) | 1/13/2025 |
formatDateTime(Date,1) | Monday, January 13, 2025 |
formatDateTime(Date,2) | 1/13/2025 |
formatDateTime(Time,0) | 3:20:35 AM |
formatDateTime(Time,2) | 12/30/1899 |
formatDateTime(Time,3) | 3:20:35 AM |
formatDateTime(Now,0) | 1/13/2025 3:20:35 AM |
formatDateTime(Now,1) | Monday, January 13, 2025 |
formatDateTime(Now,2) | 1/13/2025 |
formatDateTime(Now,3) | 3:20:35 AM |
formatDateTime(Now,4) | 03:20 |