Formatting date fields embedded in a label

Servoy docs tell you how to format a date field placed on a form. Can’t find any reference on formatting a date field embedded in a label.

As far as I know, you can’t format date fields in a label.
I don’t know if it is on the feature list, but has been mentioned before.

HJK:
As far as I know, you can’t format date fields in a label.
I don’t know if it is on the feature list, but has been mentioned before.

If true, that’s a remarkable omission.

I have answered this in the feature request too, but you could do it with a calculation!

You CAN format a date in a label (there’s just no property for it):

elements.namedLabel.text = utils.dateFormat(date, 'MM/dd/yyyy')

If you want it done automatically - then make an unstored calc with:

return utils.dateFormat(dateField, 'MM/dd/yyyy')

bcusick:
You CAN format a date in a label (there’s just no property for it):

elements.namedLabel.text = utils.dateFormat(date, 'MM/dd/yyyy')

If you want it done automatically - then make an unstored calc with:

return utils.dateFormat(dateField, 'MM/dd/yyyy')

Excellent! Recommend this go into the docs, especially on page 206 of the users guide that discusses only the formatting date fields placed on forms.