Date and Time Formats Flashcards

1
Q

What are 3 date formats?

A

Format: Y-m-d, d/m/Y, F j, Y

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are 2 time formats?

A

Format: H:i:s, h:i A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the date format
Y-m-d display?

A

Format: Y-m-d
Example Output: 2025-01-15
This format represents the year, month, and day.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In PHP, you can format and print dates and times using the _____ function

A

date()
echo date(ā€œH:i:sā€)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the date format
d/m/Y display?

A

Format: d/m/Y
Example Output: 15/01/2025
This format represents the day, month, and year.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the date format
F j, Y display?

A

Format: F j, Y
Example Output: January 15, 2025
This format represents the full month name, day, and year.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Time Format 1

A

Format: H:i:s
Example Output: 14:30:00
This format represents hours, minutes, and seconds in 24-hour format.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Time Format 2

A

Format: h:i A
Example Output: 02:30 PM
This format represents hours, minutes, and AM/PM in 12-hour format.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly