public JsInstance GetDayImpl(JsDictionaryObject target, JsInstance[] parameters) { if (double.IsNaN(target.ToNumber())) { return Global.NaN; } return Global.NumberClass.New((int)CreateDateTime(target.ToNumber()).ToLocalTime().DayOfWeek); }