The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Nominal to Date e.g.'01:40PM' to 13:40
LS
How can I convert a set of nominal fields that are meant to be date/time field to time.
e.g. I have 01:40PM and this needs to be 13:40
e.g. 08:20AM and this needs to be 08:20
How can this be done ?
What processes should I use and with what kind of settings ?
Thanks
Arthur
How can I convert a set of nominal fields that are meant to be date/time field to time.
e.g. I have 01:40PM and this needs to be 13:40
e.g. 08:20AM and this needs to be 08:20
How can this be done ?
What processes should I use and with what kind of settings ?
Thanks
Arthur
0
Answers
you can use the operator "Nominal to Date". I suggest to read the extensive documentation of this operator available in the "help"-tab.
hope this was helpful,
steffen
But I tried to use nominal to date. This process did not include the AM or PM in the conversion. All AM times were converted correctly but the PM were 12 hours wrong.
Any suggestion on how to account for PM ?
Thanks
Arthur
Here is an example. Feel free to ignore all operators except "Nominal to Date", the others are for creating the demonstration data. Please reread the documentation of this operator available in help tab. In one line it says: The "trick" is to construct a parsing statement instead of using only those available.
hope this was helpful,
steffen