How do I get the day of the week?

q)`Sat`Sun`Mon`Tue`Wed`Thu`Fri .z.D mod 7
`Sat
q)\date
“Sat Mar 5 18:56:04 PST 2011″
q)

see also: -W, .z.D, mod,
\

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.