Activity 18 - Mar 30, 2026
Submitted by Brendan Morrissey
All about date and time
Different Date Formats
1. Today is 11/19/2026
2. Today is 11/19/26
3. Today is Nov/19/26
4. Today is 2026/11/19
5. Today is 11.19.26
6. Today is 11-19-26
Display the different time formats
1. The current time is 08:10:18
2. The current time is 08:10:18 pm
3. The current time is 08:10:18 PM
4. The current time is 20:10:18
Setup the timezone
The current time in Los Angeles is 12:10:18 PM
The current time in New York is 03:10:18 PM
Different formats for days in the week
What day is today? Thursday
What day is today? Thu
What day is today? 4
Create dates using Strings
My birthday is 10/03/1994
What day is my birthday this year? Saturday
Make Time
This is the number of seconds from 12 am January 1, 1970 to 12pm January 1, 2000: 970588800
This created time is 10/03/1994 12:00:00 PM
Tomorrow is 11/20/2026
3 months from now is 02/19/2027
3 months ago was 08/19/2026
My birthday this year is 10/03/2026
Count Down Examples
My birthday has already passed this year.
Final exam countdown
There are -192 days, 2 hours, and 19 minutes until the final exam.