Formatting date field value
Original Post by Jesse (Imported from Ardevia Forum)
Im wanting to auto populate a date field in a sublist field when changing a date field in the main record. Setting the field to be updated as a calculated field based on the parent date field.
When updating the parent date field, the value is returning as:
"Sat Oct 31 2015 00:00:00 GMT+1300 (New Zealand Daylight Time)"
Which is causing an error when trying to save the record. Id like to be able to format the calculated value to conform with the expected formatted value, eg. 31/10/2015.
Any help would be much appreciated.
-
Original Post by Andrii Katsiubka (Imported from Ardevia Forum)
Try to modify calculated expression on sublist as follow
Code:
[[= [[<DateField>]] ? [[<DateField>]].format("dd/MM/yyyy") : "" ]]where <DateField> is a name of date field from parent list.
0 -
Original Post by Jesse (Imported from Ardevia Forum)
Works perfectly. Thank you so much for your help Andrii!
0
Please sign in to leave a comment.
Comments
2 comments