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.

Funktion Datumsumwandlung

Empfohlene Antworten

Veröffentlicht

Hallo,

Also ich habe mal wieder ein Problem, vielleicht kann mir jemand helfen...

**********

Function GetKalenderwoche(tdate As Date) As Integer

GetKalenderwoche = DatePart("ww", tdate, vbMonday)

End Function

**********

Kann ich die aufgeführte Funktion auch irgendwie für die Monatsumwandlung verwenden

Wie müsste ich das umschreiben???

Ich habe es zwar mit folgendem versucht:

Format([agistende];"mm")

Aber da ist das Problem, das er mir den Inhalt der rauskommt als Text formatiert

Aber ich bräuchte es als Integer sowie oben, denn anschließend will ich folgendes anwenden:

format(datum()"mm")-1

Und wenn ich es als Text hab macht er mir immer folgendes daraus

format(datum()"ww")-"1"

Vielen Dank für Ihre Bemühungen

Worum geht's denn genau? Welche Datenbank?

Also die meisten haben ja schon derartige Funktionen... - bei MSSQL kannst du z.B. per SELECT DATEPART(weekday,GETDATE()) den Wochentag des aktuellen Datums...

Und wenn du weekday durch month ersetzt, haste den Monat...

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.