I have used several methods of calendar instance. So, `isDateInToday()` and `isDateInTomorrow()` are main methods that have effect to UI part. Let's use `isDateInToday()` for today (my local time is 28th August, 2019 21:37:00 ), it shows the following:

00:00 - 4:59 (`false`). Here `isDateInTomorrow()` shows `true`

5:00 - 23:59 (`true`)

Calendar identifier is **gregorian**

Locale is **en\_US**

timeZone is **GMT (secondsFromGMT=0)**

That's the calendar instance:

```swift
private var _calendar: Calendar = {
        var cal = Calendar.current
        cal.locale = Locale.current
        cal.timeZone = TimeZone(secondsFromGMT: 0)!
        return cal
    }()

```

That's how I'm creating date:

```swift
public var today: Date? {
        let date = Date()

        let formatter = DateFormatter()
        formatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
        formatter.locale = .current
        let dateString = formatter.string(from: date)

        let formatterOut = DateFormatter()
        formatterOut.dateFormat = "yyyy-MM-dd HH:mm:ss"
        formatterOut.locale = Locale(identifier: "ru")
        formatterOut.timeZone = TimeZone(secondsFromGMT: 0)

        return formatterOut.date(from: dateString)
}

```

What should I do that it should show `true` for today between 00:00 and 23:59?