dDataReference date.
AdvPL GuideDow( dData ) --> nDiaReturns the weekday number.
Dow uses Sunday=1 and Saturday=7; a blank date produces zero. This differs from Day, day of month, and CDow, English weekday name. The community example uses Date and depends on execution day; the adaptation uses a fixed SToD date for a verifiable expectation independent of configured input format. (TOTVS, n.d., ref. 1)
Dow( dData ) --> nDiadDataReference date.
Number from 0 to 7.
#Include "Protheus.ch"
User Function Ed359()
// Fixed Monday independent of the clock.
ConOut(cValToChar(Dow(SToD("20261026"))))
Return NilExpected result: 2. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.