If you are using Linux and GRADS > 2.1.1.b0. You can ask the system: 'q time' thisdate = subwrd(result,3) DOW=sys('date --date="'thisdate'" "+%a"') say 'DOW short 'DOW DOW=sys('date --date="'thisdate'" "+%A"') say 'DOW long 'DOW DOW=sys('date --date="'thisdate'" "+%u"') say 'DOW number 'DOW Regards, Javier meteoexploration.com