dDataReference date.
AdvPL GuideCDow( <dData> ) --> cRetReturns the weekday name in English.
CDow accepts a date and returns its weekday 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)
CDow( <dData> ) --> cRetdDataReference date.
Character string in English.
#Include "Protheus.ch"
User Function Ed298()
// Fixed unambiguous date for review.
ConOut(CDow(SToD("20261026")))
Return NilExpected result: Monday. 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.