Added uiDate/dbDate functions and fixed date problem with service records.