S Smee Well-Known Member Licensed User Longtime User Nov 29, 2009 #1 Hi, How do i compare 2 dates? for example what would be the correct syntax for code such as If (Date(Now))="29-11-2009" Then .......... .......... End If Thanks all
Hi, How do i compare 2 dates? for example what would be the correct syntax for code such as If (Date(Now))="29-11-2009" Then .......... .......... End If Thanks all
taximania Well-Known Member Licensed User Longtime User Nov 29, 2009 #2 B4X: If Date(Now) = "11/29/2009" Then ...... ...... End if
S Smee Well-Known Member Licensed User Longtime User Nov 29, 2009 #3 :sign0161: Thank you, what about checking if a date is later than another for example If Date(Now) > "11/29/2009" Then end if thanks very much
:sign0161: Thank you, what about checking if a date is later than another for example If Date(Now) > "11/29/2009" Then end if thanks very much
klaus Expert Licensed User Longtime User Nov 29, 2009 #4 It can be done that way: If DateParse(Date(Now)) > DateParse("11/29/2009")Then End If You need to make shure that the date format is correct. If not, you need to change it with DateFormat. Best regards.
It can be done that way: If DateParse(Date(Now)) > DateParse("11/29/2009")Then End If You need to make shure that the date format is correct. If not, you need to change it with DateFormat. Best regards.
S Smee Well-Known Member Licensed User Longtime User Nov 29, 2009 #5 Thanks guys, As usual very prompt help. Thanks again