Need to Derive the Day of the week
Moderators: chulett, rschirm, roy
Need to Derive the Day of the week
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?
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.
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.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Thank you . Your solution worked.
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.
Thank you . Your solution worked.
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.
