[#BloombergLP-bdlt-DayOfWeek-toAscii]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DayOfWeek.adoc[DayOfWeek]::toAscii
:relfileprefix: ../../../
:mrdocs:

Return the abbreviated character&hyphen;string representation of the enumerator corresponding to the specified `dayOfWeek`&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;dayofweek&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
char const*
toAscii(xref:BloombergLP/bdlt/DayOfWeek/Enum.adoc[Enum] dayOfWeek);
----

== Description

Return the abbreviated character&hyphen;string representation of the enumerator corresponding to the specified `dayOfWeek`&period; This representation matches the enumerator&apos;s three&hyphen;character name (e&period;g&period;, `e&lowbar;SUN`) with the &quot;e&lowbar;&quot; prefix elided&period; For example&colon; &grave; bsl&colon;&colon;cout &lt;&lt; bdlt&colon;&colon;DayOfWeek&colon;&colon;toAscii(bdlt&colon;&colon;DayOfWeek&colon;&colon;e&lowbar;SUN)&semi; &grave; prints the following on standard output&colon; &grave; SUN &grave; Note that specifying a `dayOfWeek` that does not match any of the enumerators will result in an unspecified string representation being returned that is distinct from the values returned for any valid enumeration&period;

== Return Value

abbreviated character&hyphen;string representation of `dayOfWeek`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dayOfWeek*
| enumeration value to convert
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
