Click here to Skip to main content
15,867,990 members

Comments by Bardy85 (Top 16 by date)

Bardy85 4-Jan-11 5:43am View    
OriginalGriff: Now that I think about it, having multiple DateTime.Now wouldn't cause a problem at all. The worst case would be that your "second" would be off by one second from when the variable was actually created, and if he's using the same variable dateTime for both table's I don't see it causing a problem. I think we getting a bit off topic from what the actually problem was. :)
Bardy85 4-Jan-11 5:28am View    
OriginalGriff: I see what you are worried about.
That nearly impossible though, cause that statement is excuted within a few nano seconds.
I think jerryKid conversion would be his best bet, if it's already in that format.
Bardy85 4-Jan-11 5:18am View    
Then I would suggest you use JerryKid example ToString("yyyy-MM-dd HH:mm:ss"), as this will always be formatted the same.

Regards
Bardy85 4-Jan-11 5:15am View    
Hi OriginalGriff,

I agree with your first part about rather using DateTime in Database, but I don't agree with your second suggestion. What odd bugs do you get around midnight or around Jan 1st?

Regards
Bardy85 22-Sep-10 2:17am View    
Did you implement the suggested solution in the comments section? I'm also need to implement a proxy in one of my projects but havn't had time to work on it, and thought that the above solution should work.