Page 1 of 1

date in table issue

Posted: Sun Mar 03, 2024 8:01 am
by Bob.Tern
Hello again, I want to thank you for your help so far :), I was just wondering about the dates stored in the database: for e.g. "2024-02-28T00:00:00.000Z". When I get this data into my app and want to show it in a table, is there anyway to manipulate this date. for example to get rid of everything after the "T" to read "2024-02-28". I have used the split method to try and do this in my custom type script in mapping but doesn't seem to work. Thanks

Re: date in table issue

Posted: Sun Mar 03, 2024 8:06 am
by aantsypau
To do this in the mapping you need to select gear icon and add Custom TS with code
return value.split('T')[0];
see image below