web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Wie kann ich das Enddatum anhand des Startdatum und der Dauer berechnen?

(0) ShareShare
ReportReport
Posted on by 10

Hallo zusammen,

ich mal wieder... ;-)

kann mir jemand helfen wie man ein Enddatum ermittelt?

Ich habe ein Feld Startdatum (Date) und ein Feld Dauer(Dateformula) und möchte in einem weiteren Feld Enddatum (Date) das Ergebnis haben. Als Beispiel ist das Startdatum der 01.01.21 und die Dauer ist 10M. Ich möchte dann anhand dessen im Feld Enddatum den 31.10.2021 sehen. Habe mir schon ein paar Ideen aus dem Internet geholt mit CALCFORMULA aber irgendwie hat es nicht hin.

Ich möchte das übrigens in der Tabelle im OnValidate Trigger des Feldes selbst eintragen.

Bis jetzt habe ich:


//IF FORMAT("Minimum contract term") <> '' THEN BEGIN
//EndDate := (CALCDATE("Contract date", CALCDATE("Minimum contract term")));
//END;

Wahrscheinlich völliger unsinn aber ich tappe gerade völlig im dunkeln und habe keinen der mir helfen könnte.

Das NAV ist übrigens mein lokales NAV( auf dem ich rumprobieren kann wie ich möchte. Bin noch ganz am Anfang und für jede Hilfe sehr dankbar.

Gibt auch einen virtuellen Kaffee :coffee: 

Danke im Voraus :-)

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    Hi,

    docs.microsoft.com/.../calcdate-function--date-

    Please use below

    IF FORMAT("Minimum contract term") <> '' THEN

     EndDate := CALCDATE("Contract date","Start Date");

  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    Please ignore earlier one.

    IF FORMAT("Minimum contract term") <> '' THEN

    EndDate := CALCDATE(<Dateformula>,"Start Date");

  • SOL_II Profile Picture
    10 on at

    Wieder mal vielen lieben Dank. Willst du deinen Kaffee mit Milch und Zucker? :-)

  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    Yes Thank you so much, Tell me your address will meet you soon. :)

  • SOL_II Profile Picture
    10 on at

    Das wird aber eine lange Reise :-) es ist in Deutschland zwischen Freiburg / Basel(Schweiz) und Mulhouse :-)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans