Skip to main content



No record found.

Microsoft Dynamics SL forum

How to get the businessdate?

Posted on by Microsoft Employee

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.





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


    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("", ldDate.val)

       lsdate = DateToStr(ldDate)

       serr1 = SetObjectValue("cDocDate", lsdate)

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,459 Super User

Martin Dráb Profile Picture

Martin Dráb 225,783 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans