64,676
社区成员
发帖
与我相关
我的任务
分享
%c
CString temp;
CTime begintime,endtime;
temp.Format("fabandate between %c and %c",begintime,endtime);//fabandate这个字段是CTime类
Brepairstatic.Open();
Brepairstatic.m_strFilter=temp;
Brepairstatic.Requery();
temp.Format("date between %s and %s",
begintime.Format("%c").GetBuffer(),
endtime.Format("%c").GetBuffer());
temp.Format("date between %s and %s",begintime.Format("%c"),endtime.Format("%c"));
temp.Format("date between %c and %c",begintime,endtime);
这个%c用不了,
难道这个方法行不通吗
我的目的是以时间段来搜索,大家有什么好的建议,
CTime time;
sprintf(buff, "%02d:%02d:%02d",
time.GetHour(),
time.GetMinute(),
time.GetSecond());
这样可以不?