我的程序如下:
 strDate.Attributes.Add("onfocus", "setday(this)");
                DateTime today = DateTime.Now;
                String eDate1 = today.ToString("yyyy-MM-dd");
                String eDate2 = today.ToString("yyyy-MM-dd");
                endDate.Text = eDate1;
                strDate.Text = eDate2;
                endDate.Attributes.Add("onfocus", "setday(this)");现在希望eDate1这里放的是月初的数字,而不是系统当天的日子,该如何写啊?