Convert date to text

Hello guys, i need your help about thisโ€ฆ
Iam add a virtual column to convert date coloun to textโ€ฆ with this formulaโ€ฆitโ€™s work

INDEX(
LIST(
โ€œJANUARIโ€, โ€œFEBRUARIโ€, โ€œMARETโ€, โ€œAPRILโ€, โ€œMEIโ€, โ€œJUNIโ€,
โ€œJULIโ€, โ€œAGUSTUSโ€, โ€œSEPTEMBERโ€, โ€œOKTOBERโ€, โ€œNOVEMBERโ€, โ€œDESEMBERโ€
),
MONTH([Date])
)

But, and then i want to sort them with making a new virtual column againโ€ฆ Like thisโ€ฆ
IFS([Month] = โ€œJANUARIโ€, โ€œ1. JANUARIโ€,[Month] =โ€œFEBRUARIโ€,โ€œ2. FEBRUARIโ€,
[Month] =โ€œMARETโ€,โ€œ3. MARETโ€,
[Month] =" APRIL",โ€œ4. APRILโ€,
[Month] =โ€œMEIโ€,โ€œ5. MEIโ€,
[Month] =โ€œJUNIโ€,โ€œ6. JUNIโ€,
[Month] =โ€œJULIโ€,โ€œ7. JULIโ€,
[Month] =โ€œAGUSTUSโ€,โ€œ8. AGUSTUSโ€,
[Month] =โ€œSEPTEMBERโ€,โ€œ9. SEPTEMBERโ€,
[Month] =โ€œOKTOBERโ€,โ€œ10. OKTOBERโ€,
[Month] =โ€œNOVEMBERโ€,โ€œ11. NOVEMBERโ€,
true, โ€œ12. DESEMBERโ€)

Its oke but, i have a summary problem with thisโ€ฆwhen the value is at April, itโ€™s not work like i wantโ€ฆ the value not 4. Apil but a shown like thisโ€ฆ
Sun Apr 04 2021 00:00:00 GMT+0700 (Waktu Indonesia Barat)โ€ฆ

Can somebody help me to complet this bugโ€ฆor my formula is wrong.
Please correctly is

0 11 1,053
11 REPLIES 11

Hi, @taufiq_qurohman

I think itโ€™s because this is the only line with different double quotation marks.

[Month] =" APRIL",โ€œ4. APRILโ€,

Like this?

[Month] =โ€œAPRILโ€œ,โ€œ4. APRILโ€,

Good catch

Hi, @taufiq_qurohman

Sorry.
I think you need to change the double quotation marks, but I tried it myself and got the same result.
Could be a bug.

@Steve
Who should I mension in this case?
Even in my environment, the April result gets a Datetime return value, not a text value.
I think itโ€™s a problem that the timestamp is the return value in the following format, but maybe itโ€™s the correct syntax in AppSheet?

โ€œ(Number). (Month Name)โ€

ex)
โ€œ11. NOVEMBERโ€

Out of curiosity, what is going to happen if we pass

TEXT(โ€œ4. APRILโ€)

instead of

โ€œ4. APRILโ€

Because April and November are month names in English, AppSheet recognizes "4. April" and "11. November" as Date values (the 4th of April and 11th of November, respectively). As you discovered, CONCATENATE() is a workaround for this.

Thank you @tsuji_koichi

@taufiq_qurohman
Using CONCATENATE seems to be a workaround.

However, currently the following format may be judged as Date or Datetime type.

โ€œ11. NOVEMBERโ€
โ€œ4. APRILโ€.

It is recommended to develop in a different text format if possible.

ex)
โ€œ11_NOVEMBERโ€

FYI
@Steve

So good ideas i have ready to use this formula and its work perfeclyโ€ฆthanks for help
This way can fixed a bug while waiting completion from case

Thanks for the follow up @Steve
Itโ€™s nice to know another smart feature of AppSheet.

Is there a help page or something that collects Syntax that work a little differently like this?

There is not.

Yes sir,
Iโ€™ll enjoy the AppSheet Adventure Tour trip, where the mystery is still deep.

Top Labels in this Space