Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

field.formattedValue returns?

Avatar

Level 1

Hi,

I have a date field.

I just wanted to know what is the difference between below field properties?

Field Name = ReceivedDate

1. ReceivedDate.rawValue

2. ReceivedDate.formattedValue

On my machine, ReceivedDate.formattedValue retruns STRING value (if I use typeof ) but on other machine the same code throws  error.

I am assuming it is returning Date because of which typeof throws error.

Is ReceivedDate.formattedValue system depenedent?

Its very urgent, please help.

0 Replies