1
$\begingroup$

The appearance of a DateObject can be controlled by DateFormat, e.g. "Language". Is it possible to extract the text string so that in Style it appears the same as normal text.

$\endgroup$

1 Answer 1

2
$\begingroup$
do = DateObject[{2022, 12, 19}, "Day"]

enter image description here

ds = DateString @ do

"Mon 19 Dec 2022"

Style[ds, Darker @ Blue, 16]

enter image description here

DateString[do, {"DayName", "  ", "Month", "/", "YearShort"}]

"Monday 12/22"

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.