You need to sign in to do that
Don't have an account?

Please help its urgent...I am trying to create
...opportunity from .net using enterprise WSDL.
But it wont create due to Close date format issues.
i useed
opp1.CloseDate=System.convert.ToDateTime("23/03/2011").ToDate;
what is the correct way...i have been banging my head on this for long now :(
1) Make sure you have this:
2) Also try changing the project target platform to x86 instead of any CPU.
3) if your date string is coming in from an unknown source:
All Answers
try to use YYYY-MM-DD format
sq
I tried using
DateTime dt = DateTime.ParseExact(DateTime.Now.ToString(), "YYYY-MM-DD", CultureInfo.InvariantCulture);
opp1.CloseDate = dt;
in my .net code but it wont work......
Have you read Simon Fell's post on Date formats?
DateTime Parsing Issues with .NET
Yes i saw this post.....
but it didnt help me... is there anything else?
1) Make sure you have this:
2) Also try changing the project target platform to x86 instead of any CPU.
3) if your date string is coming in from an unknown source:
Thanks a ya its the boolea set CloseDateSpecified that i missed... it worked fine now :D