// The DateTimeService class that provides the current date
// by Derek Molloy.

import java.util.*;

public class DateTimeService
{
   private Date theDate;

   //constructor gets the current date/time

   public DateTimeService()
   {
     this.theDate = new Date();
   }

   //method returns date/time as a formatted string

   public String getDateAndTime()
   {
     return "The date is:" + this.theDate.toString();	
   }	
}