I took a look at the dictionary under dateformat and I see the values I want to use such : %Y-%m-%d but I have not bee successful and put the date format in this manner.
I came up with the below, but I feel its sort of the long winded approach.
Code: Select all
put the label of button "selectFromDate" into fDate
convert fDate to dateItems
put (the item 1 of fDate) & "-" & (the item 2 of fDate) & "-" & (the item 3 of fDate) into fSQLDateFormat