Click here to Skip to main content
15,916,180 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionWhat we can do with date and time offset data Pin
Tridip Bhattacharjee24-Jan-17 22:43
professionalTridip Bhattacharjee24-Jan-17 22:43 
AnswerRe: What we can do with date and time offset data Pin
Jochen Arndt24-Jan-17 23:05
professionalJochen Arndt24-Jan-17 23:05 
GeneralRe: What we can do with date and time offset data Pin
Tridip Bhattacharjee25-Jan-17 0:45
professionalTridip Bhattacharjee25-Jan-17 0:45 
GeneralRe: What we can do with date and time offset data Pin
Jochen Arndt25-Jan-17 1:07
professionalJochen Arndt25-Jan-17 1:07 
GeneralRe: What we can do with date and time offset data Pin
Tridip Bhattacharjee29-Jan-17 22:35
professionalTridip Bhattacharjee29-Jan-17 22:35 
GeneralRe: What we can do with date and time offset data Pin
Jochen Arndt29-Jan-17 22:46
professionalJochen Arndt29-Jan-17 22:46 
QuestionHow to convert client local date and time to UTC date and time Pin
Tridip Bhattacharjee24-Jan-17 22:41
professionalTridip Bhattacharjee24-Jan-17 22:41 
AnswerRe: How to convert client local date and time to UTC date and time Pin
Jochen Arndt24-Jan-17 23:20
professionalJochen Arndt24-Jan-17 23:20 
Important: Always use UTC and binary types (no local time and no strings)!

When data must be send as strings use a universal format like ISO 8601 - Wikipedia[^].

On the client side get the time as UTC (e.g. using JavaScript Date().getTime()) and send that to the server.

Handle and store them on the server side as UTC.

To display them they may be optionally converted to the client's local time.

When this is done on the client side, use appropriate functions (just search for "<language> utc to local").

When this is done on the server side the time zone used by the client must known. This can be for example stored in the user record of the login database like here at CodeProject (see your profile settings).

To convert times when having an offset (timezone offsets are usually defined in minutes) just use the Add method of the DateTime class of the used language.
GeneralRe: How to convert client local date and time to UTC date and time Pin
Tridip Bhattacharjee25-Jan-17 0:53
professionalTridip Bhattacharjee25-Jan-17 0:53 
GeneralRe: How to convert client local date and time to UTC date and time Pin
Jochen Arndt25-Jan-17 1:14
professionalJochen Arndt25-Jan-17 1:14 
GeneralRe: How to convert client local date and time to UTC date and time Pin
Tridip Bhattacharjee29-Jan-17 22:33
professionalTridip Bhattacharjee29-Jan-17 22:33 
GeneralRe: How to convert client local date and time to UTC date and time Pin
Jochen Arndt29-Jan-17 22:55
professionalJochen Arndt29-Jan-17 22:55 
QuestionWhat is the difference between integration testing, regression testing and unit testing Pin
Tridip Bhattacharjee22-Jan-17 21:38
professionalTridip Bhattacharjee22-Jan-17 21:38 
AnswerRe: What is the difference between integration testing, regression testing and unit testing Pin
F-ES Sitecore22-Jan-17 23:15
professionalF-ES Sitecore22-Jan-17 23:15 
GeneralRe: What is the difference between integration testing, regression testing and unit testing Pin
Tridip Bhattacharjee23-Jan-17 21:31
professionalTridip Bhattacharjee23-Jan-17 21:31 
GeneralRe: What is the difference between integration testing, regression testing and unit testing Pin
F-ES Sitecore23-Jan-17 21:59
professionalF-ES Sitecore23-Jan-17 21:59 
GeneralRe: What is the difference between integration testing, regression testing and unit testing Pin
Nathan Minier24-Jan-17 1:01
professionalNathan Minier24-Jan-17 1:01 
GeneralRe: What is the difference between integration testing, regression testing and unit testing Pin
F-ES Sitecore24-Jan-17 5:24
professionalF-ES Sitecore24-Jan-17 5:24 
GeneralRe: What is the difference between integration testing, regression testing and unit testing Pin
Nathan Minier24-Jan-17 5:52
professionalNathan Minier24-Jan-17 5:52 
GeneralRe: What is the difference between integration testing, regression testing and unit testing Pin
F-ES Sitecore24-Jan-17 6:33
professionalF-ES Sitecore24-Jan-17 6:33 
QuestionWindows IIS Hosting - Upgrading Options From Shared Hosting With a UK Data Centre to Something With Better Performance Pin
CMS196820-Jan-17 0:03
CMS196820-Jan-17 0:03 
AnswerRe: Windows IIS Hosting - Upgrading Options From Shared Hosting With a UK Data Centre to Something With Better Performance Pin
Afzaal Ahmad Zeeshan22-Jan-17 23:31
professionalAfzaal Ahmad Zeeshan22-Jan-17 23:31 
QuestionMessage Closed Pin
19-Jan-17 23:24
Member 1286994519-Jan-17 23:24 
AnswerRe: Constant "from" email address Pin
Afzaal Ahmad Zeeshan19-Jan-17 23:27
professionalAfzaal Ahmad Zeeshan19-Jan-17 23:27 
GeneralRe: Constant "from" email address Pin
Richard MacCutchan20-Jan-17 7:08
mveRichard MacCutchan20-Jan-17 7:08 

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.