added start and end of date in seconds