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.

Empfohlene Antworten

Veröffentlicht

Hallo,

Ich habe eine anwendung in c# mit 2 textfeldern wo jeweilsein datum eingegeben wird.

nun möchte ich gerne die tage zwichen den beiden datümern ausrechnen.

folgendermaßen habe ich es schon probiert:

DateTime start_days = Convert.ToDateTime(tb_begin_date);

          DateTime end_days = Convert.ToDateTime(tb_end_date);


               DateTime span = end_days - start_days;

das funktioniert leider nicht.

ich hoffe mir kann jemand von euch helfen

gruß

Horstiii

Ja das hatte Ich per Edit oben schon hinzugefügt =)

Habs jetzt auch geschafft das es funktioniert.

Hallo,

Ich habe eine anwendung in c# mit 2 textfeldern wo jeweilsein datum eingegeben wird.

nun möchte ich gerne die tage zwichen den beiden datümern ausrechnen.

folgendermaßen habe ich es schon probiert:

DateTime start_days = Convert.ToDateTime(tb_begin_date);

          DateTime end_days = Convert.ToDateTime(tb_end_date);


               DateTime span = end_days - start_days;

das funktioniert leider nicht. ich hoffe mir kann jemand von euch helfen gruß Horstiii

DateTime Anfang = Convert.ToDateTime(tb_start_date);

DateTime Ende = Convert.ToDateTime(tb_ende_date);


TimeSpan Zeitspanne = Ende.Subtract(Anfang);

Ein Synonym für Datumse

:D :D

Ich hab sogar bei google gesucht, aber da findet man auch nicht die mehrzahl von "Datum".

Das war auch meine erste Idee, aber bei Daten hätten sich manche gefragt was für daten?

Bei Datümern is klar, dass "Das Datum" gemeint ist.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.