Fixed date function issue