The ASP Date(), Time(), and Now() functions are used to return the date or time in various formats.
10/6/2024
Date, Time, and Now Functions | Results |
Date() | 10/6/2024 |
Time() | 10:49:58 PM |
Now() | 10/6/2024 10:49:58 PM |
formatDateTime(Date,0) | 10/6/2024 |
formatDateTime(Date,1) | Sunday, October 6, 2024 |
formatDateTime(Date,2) | 10/6/2024 |
formatDateTime(Time,0) | 10:49:58 PM |
formatDateTime(Time,2) | 12/30/1899 |
formatDateTime(Time,3) | 10:49:58 PM |
formatDateTime(Now,0) | 10/6/2024 10:49:58 PM |
formatDateTime(Now,1) | Sunday, October 6, 2024 |
formatDateTime(Now,2) | 10/6/2024 |
formatDateTime(Now,3) | 10:49:58 PM |
formatDateTime(Now,4) | 22:49 |