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.

Uhrzeit und Datum mit VBS ermitteln

Empfohlene Antworten

Hallo,

wie krieg ich die aktuelle Uhrzeit und das Datum mit VBS heraus?

Ich find weder hier im Forum was, noch im Internet, noch in nem riesen-dicken Buch über WSH ...

Danke!

oh Gott!

Sorry, hat sich erledigt :floet:

Falls auch mal jemand anderes suchen muss:


MsgBox date

MsgBox time

wscript.echo "heute ist der " & date & " und es ist jetzt " & time & " uhr ;-)"

s'Amstel

  • 2 Jahre später...
wscript.echo "heute ist der " & date & " und es ist jetzt " & time & " uhr ;-)"

s'Amstel

Dazu hätte ich eine Frage, wenn man das ja jetzt so eingibt:

msgbox (time)

dann steht ja z.B. dran 15:42:12, wie kann ich aber was dazu zählen?? Also z.B. zu 15:42:12 Uhr 15,6 Sekunden dazu zählen und wenn das mit den , nicht geht, gleich noch ne Frage, wie runde ich auf ganze Einer??

die DateAdd()-Function ist Dein Freund:

VBScript DateAdd Function

So wie es auf der Seite steht die du mir gegeben hast gehts nicht:confused::confused::confused:

definiere "gehts nicht".

- was hast du erwartet?

- was ist das ergebnis?

im übrigen:

msgbox dateadd("s", 15.6, time)

was willst du "auf einer" runden? datumsangaben?

s'Amstel

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.