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,
\

Share:

Leave a Reply