結果 : sql function to get only date from datetime