Compare datetime between two region

I get the datetime from SQL Server from say Singapore (+8.00).

But my client PC is at BangKok (+7.00).

How should I compare the datatime properly?

sepknowAsked:
Who is Participating?
 
dkloeckCommented:
use ToUniversalTime(), this way you can compare them based on UTC (GMT)
0
 
Jai STech ArchCommented:
conver them to UTC format and make the checking...
0
 
Jai STech ArchCommented:
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
dkloeckCommented:
that's what I said at the first place.. you are even taking the same method.. ¬¬
0
 
Jai STech ArchCommented:
@dkloeck...if you see the time of posting between your answer and mine it is only two minutes...i have not COPIED the way you answered...I should had my browser open and before i submitted you should have submitted you answer...so i dont that it is fair to say that "YOU ARE EVEN TAKING THE SAME METHOD"...2 + 2 is always 4..no matter who says it...
0
 
dkloeckCommented:
you are right sorry for that.. :)

but 2+2 is not always 4 ..it depends on the algebra :P
0
 
sepknowAuthor Commented:
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.