Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3819

RowComparision with date

$
0
0

Hi group, I’m sorting my table. With the amounts in Euro it works, and now I’m moving on to sorting the dates.
On the ListBox I see the dates in the format dd-mm-yyyy, and I would like to sort them using the RowComparision, so I acquire them with the following code, which however gives me an error, does it depend on the format?

Var n1 as datetime=datetime.FromString(Me.CellTextAt(row1,column))
Var n2 as datetime=datetime.FromString(Me.CellTextAt(row2,column))

The error is: Parse error: date needs to be in the format of YYYY-MM-DD HH:MM or YYYY-MM-DD

I have to convert it in the acquisition, right?

10 posts - 6 participants

Read full topic


Viewing all articles
Browse latest Browse all 3819

Trending Articles