Step 1

Create a table:


CREATE TABLE test(
	my_date DATE,
	my_time TIME,
	my_datetime DATETIME
);

Execute the code.


Step 2

Show the table:


SELECT * FROM test;

Execute the code.


my_date my_time my_datetime

Step 3

Enter the date, time, and datetime:


INSERT INTO test
VALUES (CURRENT_DATE(), CURRENT_TIME(), NOW());

SELECT * FROM test;

Execute the code.


my_date my_time my_datetime
2022-10-21 07:27:58 07:27:58

Step 4

If you want to enter date for tomorrow:


INSERT INTO test
VALUES (CURRENT_DATE() + 1, NULL, NULL);

SELECT * FROM test;

Execute the code.


my_date my_time my_datetime
2022-10-21 07:27:58 07:27:58
2022-10-22 NULL NULL

Step 5

If you want to enter date for yesterday:


INSERT INTO test
VALUES (CURRENT_DATE() - 1, NULL, NULL);

SELECT * FROM test;

Execute the code.


my_date my_time my_datetime
2022-10-21 07:27:58 07:27:58
2022-10-22 NULL NULL
2022-10-20 NULL NULL