Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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