Year::GetJrnClosedDate (Interface: Year)
 
Gets the last closed journal date.
 
DATE GetJrnClosedDate (
    enum eBookType eBookType,
    BSTR bsBook
)
 
Parameters
eBookType
[in] A value of the 'eBookType' enumeration.
bsBook
[in] The code of the book of which you want to know the final closing date.
 
Return value
A DATE containing the final closing day of the given journal.
 
See Also
CreateYearContext
 
Samples
 
C++
 
// Get the final closing date of the sundry book with code 'SNDRY'
COleDateTime odtClosedDate = pYear->GetJrnClosedDate (btSndry, "SNDRY");

C#
 
// Get the final closing date of the sundry book with code 'SNDRY'
DateTime dtClosedDate = oYear.GetVatClosedDate (eBookType.btSndry, "SNDRY");

VBS
 
' Get the final closing date of the sundry book with code 'SNDRY'
Dim dtClosedDate
dtClosedDate = oYear.GetJrnClosedDate(btSndry, "SNDRY")

VB.NET
 
' Get the final closing date of the sundry book with code 'SNDRY'
Dim dtClosedDate As Date
dtClosedDate = oYear.GetJrnClosedDate(eBookType.btSndry, "SNDRY")