C++Builder代码,你应该能读懂
2000年月23日
TDateTime dtPresent = Now();
Word wYear, wMonth, wDay;
DecodeDate(dtPresent, wYear, wMonth, wDay);
Label1->Caption = IntToStr(wYear)+"年"+IntToStr(wMonth)+"月"+IntToStr(wDay)+"日";
200-4-23
Label1->Caption = FormatDateTime("yyyy-mm-dd",Now());