"DC" wrote:
> The general problem of sharing Dates and times across a webservice interface
> is trickier than you are letting on.
> In .NET the DateTime type includes timezone, while in Java it does not.
> so you have to either make some assumptions about timezones, or explicitly
> deal with this in your interface definition.
>
> Another issue is that in .NET, DateTime is a value type which can never be
> nil. Whereas in Java this is not the case. A java.util.Calendar (the
> default type for AXIS and other web services stacks) can take null as a
> value. So, what happens when a Java client or server transmits a response
> or request to .NET that contains a nil Date? This is an edge case that
> you have to handle. Again, either make assumptions or deal with it
> explicitly in code.
>
> But I think maybe you are not interested in addressing the general case.
>
> To address your specific issue, where you get a date back from outlook in
> string format, but you need a DateTime object, you can instantiate a
> DateTime from a string, with the Parse() or ParseExact() methods.
>
> example:
>
http://cheeso.members.winisp.net/srcview.aspx?dir=misc&file=DateTimeParse.cs
>
>
> --
> -Dino
> D i n o . C h i e s a AT M i c r o s o f t . c o m
>
>
>
> <luckyabhishek@gmail.com> wrote in message
> news:1133266122.545274.145740@g43g2000cwa.googlegroups.com...
> > Hi
> > Actually i was passing the DateTime value coming from the outlook to
> > the webservice. When i query the outlook using outlook spy it gives me
> > the Start and End Date as a date object however when i query the
> > outlook using the outlook object model in C# it gives me the type of
> > Date as string.
> > I think something is wrong with the outlook object model. I've found a
> > work around for this thin for the time being however i am searching for
> > a perfect way to pass the outlook date directly to the webservice.
> > any ideas would help ?
> >
> > Abhishek
> >
>
>