Hi,
I am facing problem while inserting date through feature layer, Please check it and correct me where i am making the mistake.
var startDate:String = "13/04/2013";
var endDate:String = "20/04/2013";
var sDate:Date= DateField.stringToDate(startDate,"DD/MM/YYYY");
var eDate:Date= DateField.stringToDate(endDate,"DD/MM/YYYY");
var featureLayer:FeatureLayer = map.getLayer([configXML.FLayerDigging.DiggingServiceID].toString()) as FeatureLayer;
var newAtttrs:Object= new Object();
newAtttrs["COMPANY_NAME"] = txt_Company_name.text;
newAtttrs["START_DATE"]= sDate;
newAtttrs["END_DATE"]= eDate;
newAtttrs["OWNER"]=txt_owner.text;
newAtttrs["TELEPHONE_NO"]=txt_phone_no.text;
newAtttrs["MOBILE_NO"]=txt_mobile_no.text;
newAtttrs["DIG_LENGTH"]=txtLength.text;
newAtttrs["DIG_WIDTH"]=txtwidth.text;
newAtttrs["DIG_DEPTH"]=txtDepth.text;
newAtttrs["NOTES"]=txtrequestNote.text;
var g:Graphic = new Graphic(geom,null,newAtttrs);
featureLayer.applyEdits(,null,null);
Here the date filed is inserted as 11/04/2013 12:12:50 PM in START_DATE and 19/04/2013 12:12:50 PM as END_DATE , one day back date.
Please guide me with right path.
Thanks and Regards,
shabbir ahmad