Unfortunately there are no such functions in Derby... so i need to store the number of year, month and day in different columns.