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.

Call to get current Date 'Type'

Avatar

Level 2

Hello,

Currently, there is a selection when attempting to choose the date type field through the crx. Is it possible to instead call the current datetime format instead of having to select a specific time? Just like how the jcr:created property works in crx when generating new content, it pulls the current date/time in the crx date format. If possible, please inform me how to do so, Thanks.

3 Replies

Avatar

Level 7

Hi,

You need to write dialog listener for the same and in the onload/onsubmit event of the dialog you need to populate that value.

Thanks

Tuhin

Avatar

Level 2

Where can I find documentation on incorporating event listeners like creating a date based off the current time like the jcr:created property?