fix extract day function

modify extract day function