dDataDateRequired
Date to inspect.
AdvPL GuideMonth(dData) -> nMonthExtracts the month from an AdvPL date.
The result is 1–12 for populated dates and zero for an empty date. It takes a Date value rather than a locally formatted string. The example uses SToD for an unambiguous date. (Sources: refs. 1–1.)
Month(dData) -> nMonthdDataDate to inspect.
Integer 0–12 according to the date.
#Include "Protheus.ch"
User Function Ed529()
// Input typed as Date.
ConOut(cValToChar(Month(SToD("20261027"))))
Return NilResult: 10. 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.