Key question: What is the actual date in the data set? Is it the first day in December 2024 or is it the twelfth day in January 2024? Given that we are not yet in December of 2024 I'm guessing that the authors of GNAF Core intended a date of 12 January 2024. If they were using a sensible, modern interchange format, you wouldn't have to ask that question, but text formats like CSV/PSV are liable to all sorts of chaos, for example, because plain text does not unambiguously define data types like datetime values. Different countries use different date formats (month day year, day month year, etc.) so a dumb text format like CSV/PSV does not in and of itself say what those dates are supposed to be. You have to guess at it, perhaps using clues like what the user has picked for a system language on his or her computer. There's a similar problem in CSV/PSV with the never-ending fight between use of dot . characters or comma , characters as decimal separators in numbers. Start by reading the main CSV topic, carefully noting the advice on Unicode and also in the notes: Dates- Different languages have different ways for expression dates. When recognizing date values as dates, Manifold is guided by whatever languages are specified in the Help - Aboutdialog in the Langentry, the presumption being that the date formats in use are those employed by whatever language is in use. Reading a CSV file allows date fields to use multiple different languages. For example, one field can use US English while another field can use German.
So, from the above if the data set you are using represents dates in text form using the traditional Australian convention giving a date in day month year order, and if you also have specified en-AU as the Lang entry, well, then there are good odds that the CSV importer will correctly and automatically transform the Australian convention text values used for dates into genuine datetime values in the table. As to the difference between what actually is the datetime value and how it is styled, read the Styling Table Fields and Style: Datetime Fields topics for useful info like: Styling a field does not change either the field's data type or the contents of that field. It just changes the way the contents of the field are displayed in a table window, the Info pane, Labels, or other settings where the table values are displayed. For example, styling a datetime field that contains the value 05/19/2016 07:27:37to use the D(date) option so it displays as Thursday, 19 May 2016does not convert the datetime field into a text field so that the day of the week and the month can be spelled out, nor does it truncate the datetime value to remove the time portion. It simply shows the datetime value using a different display format.
and The Style dialog provides an extensive selection of different date and time styles, which will automatically adapt to language-country choices specified in the Languagesetting. Over 600 languages are supported by Manifold in Windows 10, with automatic use of correct language names for days of the week and months and automatic use of the correct cultural format for the country.
The key thing is to first import the data correctly. If your original file uses some local date format convention then it is essential your Lang setting matches that, to give the automatic matching of formats a chance to work correctly. After that, once you import your data you can Style it to appear however you want, using whatever local language style you want. One last thing: you might not have any choice in the matter, but if you can, get the GNAF Core data in some modern format, not PSV. GPKG/SQLite is often an option. Then there's no ambiguity about the datetimes or any other field.
|