MivaScript Builtin Function, Miva Merchant 9+
time_t_dayofweek( timet, time_zone )
<mvt:assign name="g.return_value" value="time_t_dayofweek( timet, time_zone )" />
Returns the current day of the week as a number (Sunday=1). time_zone can be the keyword 'local'
timet
time_zone