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

how to split date

halaalrobassyhalaalrobassy Member Posts: 16 Contributor II
edited July 2019 in Help
i have date and time attribute, i want to split the date into new column , how can i implement this operation 
thank you
Tagged:

Best Answer

Answers

  • kaymankayman Member Posts: 662 Unicorn
    edited July 2019
    Use the generate attribute operator.
    In this operator you will have quite some options to play with dates, including one to select only part of the date (date_get), just 'overwrite' your current field with the newly generated.

    Alternatively you could use the split operator and split on space. However, this would mean you need to convert your date to a nominal first, and afterwards convert to date again so it's a few extra steps compared to the generate operator
  • halaalrobassyhalaalrobassy Member Posts: 16 Contributor II
    thank you
    also, i used date_str_custom(att,"dd/MM/yyyy") and worked with me
Sign In or Register to comment.