SphereCommunity
return day names of the week. - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: return day names of the week. (/Thread-return-day-names-of-the-week)



return day names of the week. - massis87 - 08-15-2017 07:10 PM

exist?


RE: return day names of the week. - darksun84 - 08-15-2017 11:15 PM

http://wiki.spherecommunity.net/index.php?title=Serv.rtime.format


RE: return day names of the week. - Coruja - 08-16-2017 03:37 AM

as already said above, you can use <SERV.RTIME.FORMAT %a> or <SERV.RTIME.FORMAT %A> to get the day name on week

it will return the name in english so you must translate it if you want another language

Code:
[FUNCTION GetDayName]
return <DEF.DayName.<SERV.RTIME.FORMAT %A>>

[DEFNAME DayNames]
DayName.Sunday    "translation here"
DayName.Monday    "translation here"
DayName.Tuesday    "translation here"
DayName.Wednesday    "translation here"
DayName.Thursday    "translation here"
DayName.Friday    "translation here"
DayName.Saturday    "translation here"
with this simple code you can use <GetDayName> instead <SERV.RTIME.FORMAT %A> to get the name already translated