I am using wxWidgets 3.1.5 and seem to be misunderstanding how to set the format of a wxGridCellDateEditor.
Below is an example:
ps. m_grid_journal is a wxGrid.
Code: Select all
wxGridCellDateEditor *transDate = new wxGridCellDateEditor(wxString("%d-%m-%Y"));
m_grid_journal->SetCellEditor(row, 0, transDate);
The date always changes to the following format ("%Y/%m/%d") eg (2021/04/15)
and not to ("%d-%m-%Y") eg (15-04-2021).
Once the date is chosen I would like it to display in the day-month-year format.
can someone help me in what I am doing wrong.
Thank you.