« What should I know about the sym file, and why back it up? | Main | Is the output of meta available for use in my program? »

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

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Textile formatting is allowed.