Wonder if someone can help.
I have a datagrid in my app that a user can upload data from a CSV into - the data then saves and stores on my mySQL database. One of the collumns is a date column and the date needs to be in the correct mySQL date format which is 2010-02-24.
I need some control so that if a user uplaods the CSV but the date is not in the correct format for an error message to appear stating this. Could someone help with the code that I would need for this? I have so far:
Code: Select all
set the itemdel to tab
put line 1 of the dgText of group "MobileNumbersDataGrid" into theDataA
put item 5 of theDataA into tDate
Your help would be most appreciated.
Thanks
Daniel