dDataReference date.
AdvPL GuideCMonth( <dData> ) --> cRetReturns the month name in English.
CMonth accepts a date and returns its month name in English with an uppercase initial. Output does not automatically follow system or page language. A blank or invalid date produces an empty string according to documentation. The example uses SToD to avoid configured date-input formats. Do not translate expected output just because comments are localized. (TOTVS, n.d., ref. 1)
CMonth( <dData> ) --> cRetdDataReference date.
Character string in English.
#Include "Protheus.ch"
User Function Ed303()
// Fixed unambiguous date for review.
ConOut(CMonth(SToD("20261026")))
Return NilExpected result: October. 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.