Java types

Hey learning java for the first time.
How do you declare date and time variables?

for e.g we know that for email it would be
private String email;

for .e.g would it be
private int date;
private int time;
It’s an int variable right?