13,825
社区成员
发帖
与我相关
我的任务
分享
if((Begintime < StrToDateTime("2011-1-1 0:00"))&&(Endtime > StrToDateTime("2011-1-3 23:59")))
if((Begintime < StrToDateTime('2011-1-1 0:00'))&&(Endtime > StrToDateTime('2011-1-3 23:59')))
比较每一天,
bool exist=false;
TDateTime dt;
String dt1="2011-10-01";
for(int i=0;i<x;i++)
{
dt=...;//每一天
if( FormatDateTime("yyyy-mm-dd",dt) == dt1 )
{
exist=true;//有假日
}
}