Enhancement of floor method for date and time with border