Forum Discussion
Bhavpreet Bains
Jul 12, 2018Iron Contributor
Column formatting for date column
Hello, I was trying to format Due Date column to show green with check mark if the Status is completed. However, after adding the column formatting code, it switched the date format from DD/MM/Y...
spucelik
Microsoft
Jul 12, 2018Bhavpreet...try using the .toLocalDateString() method in you're formatting as described here.
Bhavpreet Bains
Jul 12, 2018Iron Contributor
Hello Steve,
I am wondering if you can help with another query as well.
I am getting Invalid date while trying to do the following. The current Field is of Due Date which is calculated as Created+14. It returns Date Only format for Data and Time data type.
{
"elmType": "div",
"txtContent": {
"operator": "+",
"operands": [
"@currentField",
"1"
]
}
}
Thank you.
I am wondering if you can help with another query as well.
I am getting Invalid date while trying to do the following. The current Field is of Due Date which is calculated as Created+14. It returns Date Only format for Data and Time data type.
{
"elmType": "div",
"txtContent": {
"operator": "+",
"operands": [
"@currentField",
"1"
]
}
}
Thank you.