Question / Suggestion about dates

Viewing 5 reply threads
  • Author
    Posts
  • September 13, 2017 at 9:48 AM #24568

    Jose Monteiro
    Participant

    Hi Brendan,

    1. WEEK NUMBER OF THE YEAR
    There is already a function on TF that gives us the week number of the year.
    It’s a great feature because it allows us to summarize work done, sales, or whatever we need by week.

    2. DAY OF THE WEEK
    I’ve been looking for a function that, given a date, returns the day of the week, but I found none.
    Is there any way on TF of getting the day of the week, for a given date?
    If not, would it be possible to implement such a function?

    September 13, 2017 at 10:04 AM #24573

    Brendan
    Keymaster

    Hi Jose,

    1. That’s a beta version feature right now.

    2. Do you mean Monday, Tuesday, Wednesday, etc? Or do you mean a number value between 1 and 7?

    Thanks,

    Brendan

    September 13, 2017 at 10:13 AM #24575

    Jose Monteiro
    Participant

    I mean Monday, Tuesday, …

    If we need a short version, like “Mon”, I think you already have some string function able to give us the first N characters of a string.

    Thanks.

    September 13, 2017 at 10:37 AM #24577

    Brendan
    Keymaster

    You can already do that by using the DATE() function.

    For example:

    DATE(Date Field, "EEEE")

    Will give you just the day of the week in full. If you want a partial word for the day name, then you can use fewer E’s.

    See this link for more date patterns:

    http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns

    September 13, 2017 at 10:37 AM #24578

    Brendan
    Keymaster

    And remember to set the Result Type to Text on the Formula Edit screen.

    September 13, 2017 at 11:09 AM #24580

    Jose Monteiro
    Participant

    Thank you very much for your help.

Viewing 5 reply threads

You must be logged in to reply to this topic.