This article is a mirror article of machine translation, please click here to jump to the original article.

View: 19043|Reply: 0

[Communication] c# DateTime is a solution to get the day by specifying the date

[Copy link]
Posted on 8/1/2015 11:04:30 AM | | |
  1. string riqi = ddlnian.SelectedValue + "-" + ddlyue.SelectedValue + "-" + i.ToString();
  2.                 DateTime dt = DateTime.Parse(riqi);
  3.                 string xinqi="星期"+dt.ToString("ddd",new System.Globalization.CultureInfo("zh-cn"));
Copy code






Previous:Soft exam preparation training
Next:Linq to SQL efficiency issues for deleting or emptying tables
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com