Is there a way to make the Display Name of a

Is there a way to make the Display Name of a view read the current dayโ€™s date and time, to where it reads something like โ€œThursday | March 22, 2018โ€ or even โ€œThursday | March 22, 2018 | 4:32 PMโ€?

Solved Solved
0 11 495
1 ACCEPTED SOLUTION

Yes you can do that. You need to find the correct formula for your requirements. For example if you write CONCATENATE(TODAY()) it wil show you the view name like 3/22/2018.

View solution in original post

11 REPLIES 11

Itโ€™s dynamic, have you tried putting the expressions you want in the dynamic view display name, and itโ€™s not working?

Yes you can do that. You need to find the correct formula for your requirements. For example if you write CONCATENATE(TODAY()) it wil show you the view name like 3/22/2018.

Sorry guys I was overthinking this. Iโ€™m working on the expression now, and am trying to call for the day of the week but canโ€™t find anything on calling the day of the week for AppSheet. Am I missing something?

Was thinking something like this would get me thereโ€ฆ

CONCATENATE(WEEKDAY(TODAY()) , " | ", TODAY(), " | ", TIMENOW())

โ€ฆ but the first argument(?) is returning a 5 which Iโ€™m assuming means the 5th day of the week,

but Iโ€™m looking for the word Thursday. Still working on it though.

You need to convert the day from the weekday number likeโ€ฆ

SWITCH(WEEKDAY(TODAY()), 1,โ€œSundayโ€, โ€ฆ 6,โ€œFridayโ€, โ€œSaturdayโ€)

@Aleksi - I would like to have the current month name shown as a display name. I was trying to use the now() function, but can only get the month number. Based on your SWITCH suggestion, would I have to do the same but enter the array of month names? (ughโ€ฆ)

Yep.

Thanks @Aleksi_Alkio that did it!

Currently working on the TODAY() field trying to get it to display March 22, 2018. Initially thought I could get this done with TEXT(TODAY(), โ€œmmmm d yyyyโ€) but itโ€™s saying the TEXT function is used incorrectly. This is where Iโ€™m at nowโ€ฆ

CONCATENATE( SWITCH(WEEKDAY(TODAY()), 1,โ€œSundayโ€, 2, โ€œMondayโ€, 3, โ€œTuesdayโ€, 4, โ€œWednesdayโ€, 5, โ€œThursdayโ€, 6,โ€œFridayโ€, โ€œSaturdayโ€), " | ", TEXT(TODAY()), " | ", TIMENOW() )

I also thought I could get the TIMENOW() to display as 1:45 PM instead of 13:45:25 by using TEXT(TIMENOW()) and that isnโ€™t working either. Iโ€™m in way over my head on this one lol

thanks @Steve I appreciate your answer - is there a way to add the year (or more specifically, the last 2 digits of the year (i.e. 19))?
Would that be (switchโ€ฆ) + " '"+ (concatenate (today()) โ€œYYโ€)

Steve
Platinum 4
Platinum 4

SWITCH(...) & " " & RIGHT(YEAR([Date]), 2)

Perfect!
Thanks so much @Steve - I couldnโ€™t get the '19 (specifically the โ€™ ) to come out quite right so I just removed the Right & the 2 โ€ฆ now it shows April 2019 - blah, blah, blah.

Yeah, AppSheet doesnโ€™t like quoted strings that include an apostrophe as the first character for some reasonโ€ฆ

Top Labels in this Space