如何在VB.NET中提醒30天的到期日期? [英] How to alert an expiration date for 30 days in VB.NET?
本文介绍了如何在VB.NET中提醒30天的到期日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Dim strSql as string =选择*来自tblStocks,其中Expiry_Date< = Date()
感谢您的帮助。
我的尝试:
Dim strSql as string =select * from tblStocks where Expiry_Date< = Date()
感谢您的帮助。
解决方案
从tblStocks中选择*,其中Expiry_Date< = DATEADD(day,-30,GETDATE())
Hi guys. I really need help for my Thesis project. I just wanted to ask how to alert or notify when a product has already been expired or 30 days to be expired.? Your help is highly appreciated
Dim strSql as string = "Select * from tblStocks where Expiry_Date <= Date()"
Thank you for the help.
What I have tried:
Dim strSql as string = "Select * from tblStocks where Expiry_Date <= Date()" Thank you for the help.
解决方案
Select * from tblStocks where Expiry_Date <= DATEADD(day,-30,GETDATE())
这篇关于如何在VB.NET中提醒30天的到期日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文