6 Replies Latest reply on Apr 3, 2008 3:11 PM by 807591

    how to store a date field

      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.