Hi,
I am trying to teach myself the use of the TableView. I have made quite a lot of progress thanks to the help from the forum, but I seem to be having a bit of trouble here.
I have a TableView that contains a person's name and dateOfBirth. The Dob is in "dd/MM/yyyy" format. when a TableView line is selected, I display the name in a textField and the dob in the
JFXtrasDateTextField. However, the Dob will not change. Here is the code snippet that does it
<code>
DateTime.DateFormat = "dd/MM/yyyy"
dt = DateTime.DateParse(lbl1.Text) ' dt is long
Log("datetime: " & lbl1.Text & " " & dt) 'shows that date extracted from tview ok
txtDob.DateFormat = "dd/MM/yyyy" 'JFXtrasDateTextField
txtDob.DateTime = dt 'visually, date does not change
</code>
Can anyone spot my obvious mistake, please.
Thanks,
Hilton.
I am trying to teach myself the use of the TableView. I have made quite a lot of progress thanks to the help from the forum, but I seem to be having a bit of trouble here.
I have a TableView that contains a person's name and dateOfBirth. The Dob is in "dd/MM/yyyy" format. when a TableView line is selected, I display the name in a textField and the dob in the
JFXtrasDateTextField. However, the Dob will not change. Here is the code snippet that does it
<code>
DateTime.DateFormat = "dd/MM/yyyy"
dt = DateTime.DateParse(lbl1.Text) ' dt is long
Log("datetime: " & lbl1.Text & " " & dt) 'shows that date extracted from tview ok
txtDob.DateFormat = "dd/MM/yyyy" 'JFXtrasDateTextField
txtDob.DateTime = dt 'visually, date does not change
</code>
Can anyone spot my obvious mistake, please.
Thanks,
Hilton.