A php class to handle dates