如何测试日期是否为今天 [英] How to test whether date is today

查看:65
本文介绍了如何测试日期是否为今天的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果时间如何,我如何更改此代码来执行日期:

how do i change this code to do dates instead if time:

展开 | 选择 | Wrap | 行号

推荐答案

嗨!


我认为这是你找的那个


代码:(文字)

1. CurrentDate =格式(日期,dd-MM-yyyy)

2.如果CurrentDate = Format(txtBillDate.Text,dd-MM-yyyy)然后

3.嘟嘟

4. frmAppointment.WindowState = 0''恢复表格

5.结束如果



如果是abo ve不是你寻找的代码意味着,请你清楚解释一下。



一切顺利


问候

维杰。 R
Hi!

I think this is the one you looked for

Code: ( text )

1. CurrentDate = Format(Date, "dd-MM-yyyy")
2. If CurrentDate = Format(txtBillDate.Text,"dd-MM-yyyy") Then
3. Beep
4. frmAppointment.WindowState = 0 ''Restore form
5. End If


If the above is not the code you looked for means, Can you please explain clearly.


All the Best

With Regards
Vijay. R


如果你想要约会时间为什么?

而不是传递时间,你需要传递日期。
If you want date why passing time ?

Instead of passing time ,you need to pass date.


Debasisdas,

i偶然发现这个代码正在进行的项目。他们这样做的方式只有时间。但我想要一些日期。所以当那个日期点击它会弹出表格(提醒)


感谢vijaysofist我会试试看看它是否有效。


lee123
Debasisdas,
i stumbled on to this code for a project im doing. and the way they did this it only had time. but i wanted something with dates. so when that date hit it would pop up the form (a reminder)

thanks vijaysofist i''ll try this and see if it works.

lee123


这篇关于如何测试日期是否为今天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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