1

这是我想要得到的格式 yyMMddHHmmssWWNZ

array<Char>^date_ = this->date_datepicker->Value.ToString("yyMMddHHmmssWWNZ")->ToCharArray();

如何从所选日期获取周数和周数?现在我只得到“120810144500WWNZ”

4

1 回答 1

0

http://msdn.microsoft.com/en-us/library/system.globalization.calendar.aspx

weeknr = GetWeekOfYear()

weekdaynr = GetDayOfWeek()
于 2012-10-09T21:55:58.393 回答