03-25-2010 02:19 PM
//unout is 3/4/2010
function fnToISO(dt) {
var nDate = new Date(dt);
return nDate.format("isoDateTime");
}
file:D:/Alfresco/tomcat/shared/classes/alfresco/extension/templates/webscripts)': The property valu
e is not compatible with the type defined for the property:
property: Name: {http://www.stepsoln.com/model/content/1.0}effectivedate
Title: null
Description: null
Default Value: null
DataType Name: {http://www.alfresco.org/model/dictionary/1.0}date
ContainerClass Name: {http://www.mymodel.com/model/content/1.0}doc
isMultiValued: false
isMandatory: false
isMandatoryEnforced: false
isProtected: false
isIndexed: true
isStoredInIndex: false
isIndexedAtomically: true
indexTokenisationMode: TRUE
value: 2010-03-04T00:00:00
value type: class java.lang.String
at org.alfresco.web.scripts.AbstractWebScript.createStatusException(AbstractWebScript.java:6
13)
at org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:165)
03-25-2010 03:22 PM
Date yourCustomDate = new Date("2010","02","25");Now it should work.04-27-2010 06:07 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.