Try to use simple class TDate.