"Error converting value to date", ValueFormat Exception thrown when trying to fetch date property from crx

Avatar

Avatar

askdctm

Avatar

askdctm

askdctm

04-02-2016

Hi All,

I am trying to fetch date property from crx as below :

Calendar cal = Node.getProperty("date").getValue().getDate();

"date" is of type "String" and has a value currently of "2014-02-01".

As per one of the article, http://aem.matelli.org/fetching-properties-from-dialogs/  this is one of the way to get the date value

1] Can you please guide me as to where I am missing things and what needs to be corrected.

Any thoughts/pointers on this will be helpful.

View Entire Topic

Avatar

Avatar

Abhinav_m

Avatar

Abhinav_m

Abhinav_m

04-02-2016

This would work only if you are using xtype as datetime. That would store it as a Date and then you can retrieve it like you are trying.