Save xtype datefield as Date. | Community
Skip to main content
Isabel_M__Micae
New Participant
October 16, 2015
Solved

Save xtype datefield as Date.

  • October 16, 2015
  • 1 reply
  • 1418 views

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 !

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

See this Stackoverflow thread -- it addresses this issue. 

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

1 reply

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 16, 2015

See this Stackoverflow thread -- it addresses this issue. 

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