Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Aktuelle Zeit innerhalb einer Zeitspanne

Empfohlene Antworten

Hallo

Also ich habe zwei DateTime Objekte. Das eine hat eine Startzeit und das andere eine Endzeit. So nun möchte ich gerne wissen, ob die aktuelle Zeit innerhalb dieses Intervalles ist. Gibt es dafür eine Möglichkeit?

Beispiel:

Startzeit = 16:30

Endzeit = 08:00

Aktuell = 23:51 ( was auch immer )

In diesem Fall wäre das ja so.

Gibts da eine passende Methode die mir sowas sagt? Hab bis jetzt noch nix passendes gefunden. ( Start kann auch größer End sein; also irgendwas was beide Fälle abdeckt )

du brauchst eigentlich nur mit den <, >, =, usw. Operatoren arbeiten:

        If Format(CDate("19.09.2006 23:51"), "dd.MM.yyyy hh:mm:ss") > _

           Format(CDate("19.09.2006 16:30"), "dd.MM.yyyy hh:mm:ss") Then

            MsgBox("Jo")

        End If

das ich das so machen kann ist mir schon klar. Aber evtl. gibt es ja eine Methode die mir das macht.. so alle IsTimeIn(DateTime1, DateTime2,Vergleichszeit)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.