Extract Day of the Week

btibert
btibert New Altair Community Member
edited November 2024 in Community Q&A
Below is how I would extract the hour properly from a Datetime attribute via Generate Attributes.

date_get([Signup Date], DATE_UNIT_HOUR)
I want to extract the day of the week.  For example, Monday, or Friday.  Is this possible?

I could easily do this via Execute python, but that adds a layer of complexity, especially in a teaching context. 


Tagged:

Best Answer

Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee
    Answer ✓
    Hi,
    date to numerical allows you to do it.

    Best,
    Martin
  • btibert
    btibert New Altair Community Member
    Ahh, I don't think I would have put that together but that now makes sense.  Thanks.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.