This discussion is archived
6 Replies Latest reply: Apr 2, 2008 2:22 PM by 807591 RSS

how to store a date field

807591 Newbie
Currently Being Moderated
I'm pretty new to java so please keep that in mind. I've created an employee class with name and start date. the name is String but what do I store the date as in the instance variables?

public class Employee
{
// instance variables
private String firstName;
private String secondName;
private ****** startDate;


I obviously then want to do calculation with that date such as subtracing and adding etc. Any help? thanks all.