Click here to Skip to main content
15,923,164 members
Home / Discussions / C#
   

C#

 
GeneralRe: Regarding 70-315 Pin
Colin Angus Mackay10-Nov-06 8:43
Colin Angus Mackay10-Nov-06 8:43 
QuestionHow to check an internet connection Pin
CodeItWell9-Nov-06 1:34
CodeItWell9-Nov-06 1:34 
AnswerRe: How to check an internet connection Pin
mertkan659-Nov-06 2:40
mertkan659-Nov-06 2:40 
QuestionTreeview problem [modified] Pin
Suhas Bothe9-Nov-06 1:33
Suhas Bothe9-Nov-06 1:33 
AnswerRe: Treeview problem Pin
Robert Rohde9-Nov-06 2:05
Robert Rohde9-Nov-06 2:05 
GeneralRe: Treeview problem Pin
Suhas Bothe9-Nov-06 2:24
Suhas Bothe9-Nov-06 2:24 
GeneralRe: Treeview problem Pin
Robert Rohde9-Nov-06 3:00
Robert Rohde9-Nov-06 3:00 
GeneralRe: Treeview problem Pin
Suhas Bothe9-Nov-06 2:28
Suhas Bothe9-Nov-06 2:28 
GeneralRe: Treeview problem Pin
vinSharp9-Nov-06 22:42
vinSharp9-Nov-06 22:42 
QuestionMulti Monitor Application Pin
blackpenny159-Nov-06 1:24
blackpenny159-Nov-06 1:24 
AnswerRe: Multi Monitor Application Pin
mav.northwind10-Nov-06 20:44
mav.northwind10-Nov-06 20:44 
QuestionIs there a setting in visual studio for the Convert.ToDateTime? Pin
Support1239-Nov-06 0:46
Support1239-Nov-06 0:46 
AnswerRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
rah_sin9-Nov-06 0:54
professionalrah_sin9-Nov-06 0:54 
GeneralRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
Support1239-Nov-06 1:03
Support1239-Nov-06 1:03 
GeneralRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
rah_sin9-Nov-06 1:33
professionalrah_sin9-Nov-06 1:33 
AnswerRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
Colin Angus Mackay9-Nov-06 1:00
Colin Angus Mackay9-Nov-06 1:00 
GeneralRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
Support1239-Nov-06 1:09
Support1239-Nov-06 1:09 
AnswerRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
Hunuman9-Nov-06 1:29
Hunuman9-Nov-06 1:29 
GeneralRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
Support1239-Nov-06 1:44
Support1239-Nov-06 1:44 
GeneralRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
Colin Angus Mackay9-Nov-06 6:59
Colin Angus Mackay9-Nov-06 6:59 
GeneralRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
Pete O'Hanlon9-Nov-06 1:45
mvePete O'Hanlon9-Nov-06 1:45 
GeneralRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
Support1239-Nov-06 2:12
Support1239-Nov-06 2:12 
No it's winforms. Thank you...i tried your previous example that you gave me...

// Force the culture to English (GB).<br />
CultureInfo culture = new CultureInfo("en-GB");<br />
<br />
DateTime dateTime = Convert.ToDateTime(_appDate+" "+startTime, culture);<br />
DateTime dateTime2 = Convert.ToDateTime(_appDate+" "+endTime, culture);


but this brought back the exact same date "11/09/2006" as when i tried just to
string _fromDateTime = _appDate+" "+startTime;<br />
string _endDateTime = _appDate+" "+endTime;<br />
FromTime = Convert.ToDateTime(_fromDateTime);<br />
ToTime = Convert.ToDateTime(_endDateTime);


but on my friends pc it brings back the value "2006/09/11 02:00:00 PM"

Sorry, in know i'm not explaing enough what my problem is but i'm not even sure what is wrong... its just when i try to compare to dates like in this example: if( _today>=vch.FromDate && _today <=vch.ToDate)
_today has the value of todays date... on my computer it is "11/09/2006" the value of vch.FromDate is "11/09/2006" and the value of vch.ToDate is "11/09/2006"... This if statement should return true... Am i right.

On my computer it returns false... ???? Confused | :confused: that is just one example... another one was yesterday's problem, but some how that sorted itself out... when the selected time "2006/09/11 02:00:00 PM" was writen into the database the the time would be inserted as AM but without the AM if that makes sense (like so: "2006/09/11 02:00:00.000)... Now it writes the time in the db correctly... "2006/09/11 14:00:00.000" Weird but true...

"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison

GeneralRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
Pete O'Hanlon9-Nov-06 2:27
mvePete O'Hanlon9-Nov-06 2:27 
GeneralRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
Support1239-Nov-06 2:32
Support1239-Nov-06 2:32 
GeneralRe: Is there a setting in visual studio for the Convert.ToDateTime? Pin
Pete O'Hanlon9-Nov-06 4:14
mvePete O'Hanlon9-Nov-06 4:14 

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.