🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

how to split date

User: "halaalrobassy"
New Altair Community Member
Updated by Jocelyn
i have date and time attribute, i want to split the date into new column , how can i implement this operation 
thank you

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "kayman"
    New Altair Community Member
    Updated by kayman
    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
    User: "varunm1"
    New Altair Community Member
    Accepted Answer
    Hello @halaalrobassy

    Generate attribute with function date_str_custom(date, "dd.MM.yyyy") should work. Replace date with your date attribute name.
    User: "halaalrobassy"
    New Altair Community Member
    OP
    thank you
    also, i used date_str_custom(att,"dd/MM/yyyy") and worked with me