add method for extract day