DateTimePicker日期到字符串(自定义格式)

时间:2012-10-08 04:12:38

标签: visual-c++

这是我想要的格式yyMMddHHmmssWWNZ

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

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

1 个答案:

答案 0 :(得分:0)

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

weeknr = GetWeekOfYear()

weekdaynr = GetDayOfWeek()