Need to Derive the Day of the week
Posted: Wed Sep 10, 2008 8:08 am
I am in a sequencer and I need to derive the day of the week. For example, monday tuesday wednesda....etc. Can someone help me?
A short text to describe your forum
http://www.dsxchange.com/
chulett wrote:Welcome Mr Todd. :D
I thought there was a TAG for this, but... create a custom routine that takes a date and passes back the day of the week by name. Use OConv for this with a 'D' or Date conversion code - specifically 'DWA' to return the full day name or 'DWB' to return the 'abbreviated' day name. Drop it back to 'DW' if you ever want the day of the week number.
Edited to add: Use OConv in concert with IConv, they are typically employed in pairs. So, first IConv to convert the passed in date to an internal value and then OConv to turn that internal value into the external representation of your choice - in this case, day of the week name.
chulett wrote:Welcome Mr Todd. :D
I thought there was a TAG for this, but... create a custom routine that takes a date and passes back the day of the week by name. Use OConv for this with a 'D' or Date conversion code - specifically 'DWA' to return the full day name or 'DWB' to return the 'abbreviated' day name. Drop it back to 'DW' if you ever want the day of the week number.
Edited to add: Use OConv in concert with IConv, they are typically employed in pairs. So, first IConv to convert the passed in date to an internal value and then OConv to turn that internal value into the external representation of your choice - in this case, day of the week name.