Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

How to get the businessdate?

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

I need to get the business date and set to my field called "caDate"

something like this.

 

a = SetObjectValue("caDate", I_need_a_Function_To_Get_BusinessDate())

 

I am using SL 7 and I am trying to create a customization

I don't know how to use SIVToolbar in a customization. (I think the business date is accesible from sivToolbar) but I don't know how to access to SIVToolbar from customization mode.

 

Thanks in advance.

 

 

 

 

*This post is locked for comments

  • Verified answer
    Barry Flynn Profile Picture
    3,090 on at
    Re: How to get the businessdate?

    Alfredo

    Here's some code I've tested in the AR Invoice screen (08.010).

    I added a button & put the following code in its Clicj event.

    Pressing the button re-sets the DocDate field to the Solomon Business Date.

    The code is

       Dim ldDate As Sdate

       Dim lsdate As String

       Call GetBufferValue("bpes.today", ldDate.val)

       lsdate = DateToStr(ldDate)

       serr1 = SetObjectValue("cDocDate", lsdate)

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

#1
Community Member Profile Picture

Community Member 136

#2
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 102 Super User 2025 Season 1

#3
REUser Profile Picture

REUser 8

Featured topics

Product updates

Dynamics 365 release plans