fix for date