Date expression help needed

I need to be able to take a date in this format:

and make a view to list the months (group the months together)

I have this to take the month number out of the raw data:

Then i use this to create the list (by month in order):

But i keep getting โ€œinvalid dateโ€

So somewhere I am missing the month from the original raw data?

Solved Solved
0 12 523
1 ACCEPTED SOLUTION

I had to make the Type = Text.

Also on [Last Seen Time] the Type is also โ€œTextโ€

nm Steve - i got it. Thank you very much for your help as usual.

View solution in original post

12 REPLIES 12

I believe you could use the TEXT() expressions to get the month straightaway from the datetime column like below

TEXT(DATE([LAST SEEN TIME]), โ€œMMMMโ€)

or even

TEXT([LAST SEEN TIME], โ€œMMMMโ€)

I tried this - it does not work. It gives me this:
3X_3_b_3b80ad16fb5bd519204e5f0399609802a71971c0.png

No month is showing. Also, this number - โ€œ3277โ€ is raw data that should be separated into months- it seems to still be grouping it all together. This leads me to believe it is NOT understanding the month expression.

To further show you what i want - i have this working for another app:

However - the [Date] - column is in a different format. I believe this is why I am unable to do it here.
Date format that works:
3X_7_8_7837bbb1c2df38b556a747a51268e54ad6984d7c.png

Date format I am having trouble with:
3X_f_a_fa8ee223d8f5621cd9f355d4d4ae6c90ff8e068c.png

I have it now putting everything in this month, but i want it to separate into the month it is:

As you can see, a lot of these are NOT September and yet are grouping under September:

Steve
Platinum 4
Platinum 4

AppSheet doesnโ€™t recognize the date/time format youโ€™re using (YYYY-MM-DD HH:MM ZZZ).b AppSheet requires the stored dates be in MM/DD/YYYY format and times be either HH:MM or HH:MM:SS with no timezone specification.

Ah, ok. Question? Can i take any of that date apart and then get the month (maybe the month number)?

Sure:

NUMBER(MID([LAST SEEN TIME], 6, 2))

See also:


It gives me this error:
3X_3_5_35f143e6d267ed93015f3afd18e5d6ed82fa90ed.png

nm. Works now. Thanks

Can I make the numbers - be the month name?

01 - January
etcโ€ฆ

Yep:

INDEX(
  LIST(
    "01 - January",
    "02 - February",
    ...,
    "12 - December"
  ),
  NUMBER(MID([LAST SEEN TIME], 6, 2))
)

It gives me this? I donโ€™t want the time and that format. I just wanted the month. Did I write something wrong?

Please post a screenshot of the configuration for the column.

I had to make the Type = Text.

Also on [Last Seen Time] the Type is also โ€œTextโ€

nm Steve - i got it. Thank you very much for your help as usual.

Bingo! Well done!

Top Labels in this Space