Dates in list don't format the same as Date

When I have a list of dates it formats differently, MM/DD/YYYY,
to the columns that are set to Date, DD/MM/YYYY

0 11 344
11 REPLIES 11

Steve
Platinum 4
Platinum 4

Probably a misconfiguration of your app somewhere.

Iโ€™ve got all Localisation set as United Kingdom, but they are still showing like this
3X_8_c_8c4df01d6b1c9abd291d7535bbb12a295a6571ba.png
First OS Date received is set as Date, First 4โ€ฆ set as List, Date

Itโ€™s possible itโ€™s a bug. Localization issues are a total pain to troubleshoot.

Is your device or browser configured with the correct locale?

Is the app table configured with the locale of the data source (the spreadsheet or database)?

Is the data source (the spreadsheet or database) configured with a locale that is appropriate for the data?

I am not sure how the First 4 OS Date Received column of the data source should be formatted, since the content of each value is a list. Myself, I would format it as plain text if a spreadsheet, or VARCHAR if a database.

How does First 4 OS Date Received get its value? Please post a screenshot of the entire expression. Please also post a screenshot of the columnโ€™s configuration screen that includes at least everything down to and including the Type Details section.

True

if only we could all agree to do things the same way

Iโ€™m pretty sure the browser is the correct locale

The app table where the data comes from is Google sheets and is the correct locale, on the sheet and in appsheet.
The table the virtual column is in is excel. It is the correct locale setting in appsheet.

I need to compare the first date in the list to another date, so I thought if I reformat them they wonโ€™t compare.
Now I donโ€™t actually need the whole list, Iโ€™m just showing the first from the list and Iโ€™ve converted that to a date in another column and that shows correctly.
Iโ€™d just like to figure out how to correct the list formatting in case I need it in future.

How does First 4 OS Date Received get its value? Please post a screenshot of the entire expression. Please also post a screenshot of the columnโ€™s configuration screen that includes at least everything down to and including the Type Details section.

I get the Top 4 keys using this

Then get the dates with this. (which you helped me with the other day )

The data source (the spreadsheet or database) column format does not strictly need to match the app tableโ€™s column type. In some cases (e.g., with lists), there is no data source equivalent. In spreadsheets, the absolute safest cell format you can use for everything is plain text. The downside to formatting the spreadsheet as plain text is the spreadsheet becomes less legible to its human users. Cell formatting can confuse AppSheet, so you have to be judicious about it.

Hereโ€™s my approach:

  • Format the entire worksheet as plain text. Do not use automatic formatting.

  • Worksheet columns that correspond to app Number columns may be set to automatic, or to a desired numeric format.

  • Worksheet columns that correspond to app Decimal or Price columns may be set to automatic, or to a desired numeric format. I set the number of decimal places in the worksheet column to match that in the app column.

  • Worksheet columns that correspond to app Date columns may be set to automatic, or to the built-in date format. I havenโ€™t tried using a custom date format.

  • Worksheet columns that correspond to app DateTime columns may be set to automatic, or to the built-in date & time format. I havenโ€™t tried using a custom date/time format.

  • Worksheet columns that correspond to app Time columns may be set to automatic, or to the built-in time format. I havenโ€™t tried using a custom time format.

  • Worksheet columns that correspond to app Lat or Long (but not LatLong) columns may be set to plain text, automatic, or to a numeric format that allows a lot of decimal places (10?).

  • Worksheet columns that correspond to app EnumList, LatLong, List, or XY columns should be set to plain text.

  • All other worksheet columns should be plain text.

AppSheet doesnโ€™t pay any attention to most other cell formatting. Generally, Iโ€™d consider it safe to use any of the following spreadsheet cell formatting features without any concern for app behavior:

  • Underline, italics, strikethrough, or bold. Note that bold is expected by AppSheet in the header row of the workbook.
  • Font/typeface.
  • Text or background color
  • Text size
  • Text wrapping or rotation
  • Horizontal or vertical alignment
  • Cell borders
  • Conditional formatting
  • Frozen rows or columns

Thanks for your help Steve.
I havenโ€™t got the list formatting correctly, but as I donโ€™t need it at the moment Iโ€™m going to leave it.
I can get the first date and make that type Date in appsheet, then it looks right and can compare.

Hi @Steve ,

Your the above detailed post on recommended spreadsheet columns formatting will be great to have in the โ€œTips and Tricksโ€ section. I am sure many community members will find it a useful reference.

Thank you very much @Steve.

Top Labels in this Space