Click here to Skip to main content
15,898,732 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Question<Projectname>.config in bin folder Pin
Markus Evacoso25-Jan-17 10:55
Markus Evacoso25-Jan-17 10:55 
AnswerRe: <Projectname>.config in bin folder Pin
ZurdoDev26-Jan-17 0:51
professionalZurdoDev26-Jan-17 0:51 
GeneralRe: <Projectname>.config in bin folder Pin
Markus Evacoso26-Jan-17 20:51
Markus Evacoso26-Jan-17 20:51 
AnswerRe: <Projectname>.config in bin folder Pin
Bryian Tan28-Jan-17 12:46
professionalBryian Tan28-Jan-17 12:46 
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 
It depends on the used language and the used DateTime format.

If you have a format that uses the elapsed seconds or milliseconds since some epoch, just do addition / subtraction.

If you have a DateTime class, use the provided class functions to add/subtract time spans and get the difference between two objects. These classes have usually also functions to convert between UTC and local time using the user or system settings for the local time zone.

For JavaScript see for example Date - JavaScript | MDN[^].
For .NET see DateTime Structure (System)[^].

There is usually no need to get the offset. Use conversion functions instead.

The only situation to use an offset might be when it is configured by a user setting on the server (e.g. the user has specified his time zone). Then use the language dependant addition method with a time span set to the offset.

With .NET DateTime, use for example DateTime.ToUniversalTime Method (System)[^] and DateTime.ToLocalTime Method (System)[^]. But note that the object must be in the source format (when using ToLocalTime for example, the object must contain a UTC time).
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 
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 

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.