Hi,
(I'm a beginner)
could you tell me how to compare two datetime while neglecting hours, min and sec?
I want to list the items that have a date less than or equal to a date entered by the user
here is my code :
(I'm a beginner)
could you tell me how to compare two datetime while neglecting hours, min and sec?
I want to list the items that have a date less than or equal to a date entered by the user
here is my code :
Code:
isc.DynamicForm.create({ ID: "RappelsForm", width: 300, saveOnEnter: true, dataSource: crm_objects, fields: [ {name: "crm_obj_dnac", title: "later than", type: "datetime", useTextField: true, operator: "lessThan", defaultValue: new Date(), } ] }); isc.IButton.create({ ID: "RappelsButton", left: 310, icon: "[SKIN]actions/filter.png", title: "Filtrer", click: function () { var c ={crm_kind_can_alert:true ,crm_obj_isactive: true}; var crit = isc.DataSource.combineCriteria(RappelsForm.getValuesAsCriteria(), c); RappelsGrid.fetchData(crit); } });
Comment