Bug fixing formating date oracle & mysql