从当前时间到两天前的日期时间 [英] Date time from current time to two days ago

查看:82
本文介绍了从当前时间到两天前的日期时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友您好,



我在窗口应用程序中工作。在那里我使用IMAP从gmail获取邮件。

但我需要的是它只需两天就可以获取邮件。代码是什么代码。



代码//



Hello friends,

I am working in window application. There I am using IMAP to fetch mail from gmail.
But My need is It fetch mail just two days old. what code will be for this.

code//

Insert Ignore into gmail_inbox(unique_id,sender,reciever,subject,date,message,mail_status) values (@unique_id,@sender,@reciever,@subject,@date,@message,@mail_status) where date between curdate() and (curdate(), interval 7 day)





谢谢

Neetesh



Thanks
Neetesh

推荐答案

你好,



请看一下[ ^ ]关于CodeProject的文章。特别要注意 SearchMessage API。



问候,
Hello,

Please have a look at this[^] article here on CodeProject. Especially you pay attention to SearchMessage API.

Regards,


这篇关于从当前时间到两天前的日期时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆