Expand my Community achievements bar.

SOLVED

Save xtype datefield as Date.

Avatar

Level 1

Hello,

I want to save a xtype ‘datefield’ in CQ5 as Date type, like a jcr:created property for example. In dialog node i have defined a ‘cq:widget’  with the property xtype=‘datefiled’. But the issue is that the result is saved like a String type insted of Date type.

How can i save the item as Date?

Thanks !

1 Accepted Solution

Avatar

Correct answer by
Level 10
1 Reply

Avatar

Correct answer by
Level 10

See this Stackoverflow thread -- it addresses this issue. 

http://stackoverflow.com/questions/14849476/get-date-as-type-date-in-cq5