Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

How I have compare date?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-20-2007, 09:05 AM
Newbie
 
Join Date: Sep 2007
Posts: 3
Default How I have compare date?

How I have compare date?

If Date(Table2.Cell",1)) >= Date(Calendar4.Value) Then
Code.....
End if

Error description:
Input stringer was music land and correct form.
Reply With Quote
  #2 (permalink)  
Old 09-20-2007, 09:09 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Just remove the Date keywords:
If Table2.Cell(...) >= Calendar4.Value Then
Reply With Quote
  #3 (permalink)  
Old 09-20-2007, 09:33 AM
Newbie
 
Join Date: Sep 2007
Posts: 3
Default

Same problem.

Calendar4.Format = "dd-mm-yyyy"
X = "30-09-2007"

If X >= Calendar4.Value Then
MsgBox(X)
End If
Reply With Quote
  #4 (permalink)  
Old 09-20-2007, 09:36 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,734
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You need first to convert the string into a date value using DateParse:
If DateParse(X) >= Calendar4.Value Then...
Reply With Quote
  #5 (permalink)  
Old 09-20-2007, 09:54 AM
Newbie
 
Join Date: Sep 2007
Posts: 3
Default

Much thanks already it steps.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
working with date gjoisa Questions (Windows Mobile) 3 03-29-2008 09:40 AM
How to get the value of date substraction ? gjoisa Questions (Windows Mobile) 1 02-11-2008 09:15 AM
filter for date manu Questions (Windows Mobile) 2 06-09-2007 01:13 PM
Can we compare imagelist items? Cableguy Questions (Windows Mobile) 1 06-02-2007 05:03 PM
How can i compare 2 Dates Fontanus Questions (Windows Mobile) 3 05-04-2007 09:37 PM


All times are GMT. The time now is 11:16 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0