Click here to Skip to main content
15,900,973 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: how to execute vb.net project?? Pin
Colin Angus Mackay7-Feb-07 2:56
Colin Angus Mackay7-Feb-07 2:56 
AnswerRe: how to execute vb.net project?? Pin
Colin Angus Mackay7-Feb-07 3:03
Colin Angus Mackay7-Feb-07 3:03 
GeneralRe: how to execute vb.net project?? Pin
swathiiiiiiiiii7-Feb-07 4:22
swathiiiiiiiiii7-Feb-07 4:22 
GeneralRe: how to execute vb.net project?? Pin
Pete O'Hanlon7-Feb-07 4:33
mvePete O'Hanlon7-Feb-07 4:33 
Questionhow to cancel delegate Pin
hanlei00000000096-Feb-07 19:24
hanlei00000000096-Feb-07 19:24 
AnswerRe: how to cancel delegate Pin
Luc Pattyn6-Feb-07 22:41
sitebuilderLuc Pattyn6-Feb-07 22:41 
Generalthanks Pin
hanlei00000000097-Feb-07 16:01
hanlei00000000097-Feb-07 16:01 
Question.NET evaluating web service date incorrect--need help fast! Pin
kryzchek6-Feb-07 9:41
kryzchek6-Feb-07 9:41 
I'm receiving reports from my users that my application is handling dates incorrectly. I've confirmed that this is indeed happening for users outside of my network, but doesn't seem to be occurring with users on my local network.

My application is a .NET 2.0 distributed app using .NET 2.0 web services for data access. It seems that any time I return a date from the web service, the application is for some reason subtracting 1 day from that date.

For example, if I return information on a Customer, the web service response will give me a date such as:

<pickupdate>2007-02-06T00:00:00-05:00

However, the program is displaying this as 2/5/2007. I'm not doing any sort of manipulation with the date. The web service returns a dataset, and I simply iterate the datatable's row collection and convert that column to a datetime using the following:

<br />
        static public DateTime GetDateTime(DataRow DataSource, string ColumnName)<br />
        {<br />
            if (DataSource[ColumnName] == DBNull.Value)<br />
            {<br />
                return DateTime.MinValue;<br />
            }<br />
            else<br />
            {<br />
                return (DateTime)DataSource[ColumnName];<br />
            }<br />
<br />
        }   //End the GetDateTime() method<br />


I've confirmed that the date is right when returned from the web service. I'm at a loss as to why it's being changed when running through this GetDateTime() method. I'd be grateful for any help.
AnswerRe: .NET evaluating web service date incorrect--need help fast! Pin
Tim Paaschen6-Feb-07 21:07
Tim Paaschen6-Feb-07 21:07 
GeneralRe: .NET evaluating web service date incorrect--need help fast! Pin
kryzchek7-Feb-07 5:03
kryzchek7-Feb-07 5:03 
GeneralRe: .NET evaluating web service date incorrect--need help fast! Pin
Pete O'Hanlon7-Feb-07 22:30
mvePete O'Hanlon7-Feb-07 22:30 
QuestionAssembly Pin
vasini6-Feb-07 9:07
vasini6-Feb-07 9:07 
AnswerRe: Assembly Pin
Pete O'Hanlon6-Feb-07 9:33
mvePete O'Hanlon6-Feb-07 9:33 
QuestionGarbage Collector Pin
vasini6-Feb-07 8:57
vasini6-Feb-07 8:57 
AnswerRe: Garbage Collector Pin
Pete O'Hanlon6-Feb-07 9:31
mvePete O'Hanlon6-Feb-07 9:31 
AnswerRe: Garbage Collector Pin
Guffa6-Feb-07 10:36
Guffa6-Feb-07 10:36 
GeneralRe: Garbage Collector Pin
Colin Angus Mackay7-Feb-07 2:58
Colin Angus Mackay7-Feb-07 2:58 
GeneralRe: Garbage Collector Pin
Pete O'Hanlon7-Feb-07 4:34
mvePete O'Hanlon7-Feb-07 4:34 
QuestionHow to upgrade from .NET 1.1 to .NET 2.0 Pin
Vernware6-Feb-07 8:04
Vernware6-Feb-07 8:04 
AnswerRe: How to upgrade from .NET 1.1 to .NET 2.0 Pin
Pete O'Hanlon6-Feb-07 9:29
mvePete O'Hanlon6-Feb-07 9:29 
AnswerRe: How to upgrade from .NET 1.1 to .NET 2.0 Pin
M-Hall6-Feb-07 16:40
M-Hall6-Feb-07 16:40 
GeneralRe: How to upgrade from .NET 1.1 to .NET 2.0 Pin
Vernware7-Feb-07 9:44
Vernware7-Feb-07 9:44 
QuestionRe: How to upgrade from .NET 1.1 to .NET 2.0 Pin
CompMan4427-Feb-07 5:04
CompMan4427-Feb-07 5:04 
AnswerRe: How to upgrade from .NET 1.1 to .NET 2.0 Pin
M-Hall28-Feb-07 16:15
M-Hall28-Feb-07 16:15 
GeneralRe: How to upgrade from .NET 1.1 to .NET 2.0 Pin
CompMan4428-Feb-07 18:10
CompMan4428-Feb-07 18:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.