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

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to be fix work date as today in RTC?

(0) ShareShare
ReportReport
Posted on by

Hi All,

I have changed work date as today in RTC but when i reopen its taking different date.

how can i fix it please suggest.

Thank you

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mohana Yadav Profile Picture
    60,969 Super User 2025 Season 2 on at
    RE: How to be fix work date as today in RTC?

    are you using cronus company?

    so it will be set automatically in CompanyOpen function of Codeunit 1

  • Suggested answer
    Yogesh Kulkarni_ Profile Picture
    1,762 on at
    RE: How to be fix work date as today in RTC?

    The default WorkDate is System Date by default. So it will change whenever you will restart the client.

    Please refer:

    https://msdn.microsoft.com/en-us/library/hh179538(v=nav.90).aspx

     

    -Yogesh Kulkarni
    Please verify, if you find answer helpful.

  • Suggested answer
    Suresh Kulla Profile Picture
    50,237 Super User 2025 Season 2 on at
    RE: How to be fix work date as today in RTC?

    If it is a demo company then check codeunit 40 Login Management function GetDefaultWorkDate, it will use GLEntry Posting Date as WorkDate.

  • Suggested answer
    Maneesha Profile Picture
    5,891 on at
    RE: How to be fix work date as today in RTC?

    if your setup = "cronus"

      then : you cannot do anything

    else

      go to : "user setup" and check your fields are in allowed range

    else check the code units

  • Suggested answer
    Amol Salvi Profile Picture
    18,698 on at
    RE: How to be fix work date as today in RTC?

    As other suggested if it is cronus db then it will take date defined in system

  • Suggested answer
    Rajasekhar@MS Profile Picture
    5,569 on at
    RE: How to be fix work date as today in RTC?

    Hi

    Write code in LoginStart Function of LoginManagement like WORKDATE := TODAY and check.

  • Suggested answer
    Binesh Profile Picture
    7,885 on at
    RE: How to be fix work date as today in RTC?

    Hello Ramesh,

    As per suresh, you could achieve your requirements, just make some changes, see the bellow screenshot

    default-WD.png

  • Suggested answer
    Andrei Lungu Profile Picture
    5 on at
    RE: How to be fix work date as today in RTC?

    Hi Ramesh,

    Create and run a new Codeunit "Fix Demo Company Workdate" with the following code:

    OnRun()

    IF Company.FINDSET THEN

     REPEAT

       IF NOT (COMPANYNAME = Company.Name) THEN

         CompanyInformation.CHANGECOMPANY(Company.Name);

       CompanyInformation.GET;

       CompanyInformation."Demo Company" := FALSE;

       CompanyInformation.MODIFY;

     UNTIL Company.NEXT = 0;

    And variables:

    Name DataType Subtype Length

    Company Record Company

    CompanyInformation Record Company Information

  • Sivaji Raman Profile Picture
    20 on at
    RE: How to be fix work date as today in RTC?

    Its worked your comment Thanku you so much.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Alexander Ermakov Profile Picture

Alexander Ermakov 2

#2
SC666 Profile Picture

SC666 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans