RTC1307 - Set a custom date/time

I used this library
http://code.google.com/p/ds1307new/

//DS1307
#include <Wire.h>
#include <DS1307new.h>  // version 1.24

RTC.fillByYMD(year, month, day);
RTC.fillByHMS(hours, minutes, seconds);
RTC.setTime();
RTC.startClock();

You must declare and fill year,month,... etc. as int
Look at the examples also.

The instruction for Adafruit library is

RTC.adjust(DateTime(year, month, day, hour, minute, seconds))