Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
Questionvoice recording Pin
ghost_cis28-Apr-06 6:25
ghost_cis28-Apr-06 6:25 
AnswerRe: voice recording Pin
Judah Gabriel Himango28-Apr-06 6:33
sponsorJudah Gabriel Himango28-Apr-06 6:33 
GeneralRe: voice recording Pin
ghost_cis28-Apr-06 7:00
ghost_cis28-Apr-06 7:00 
GeneralRe: voice recording Pin
Judah Gabriel Himango28-Apr-06 8:16
sponsorJudah Gabriel Himango28-Apr-06 8:16 
QuestionCan you the DateTime class to always show and do things in Universal Time? Pin
Rafferty Uy28-Apr-06 6:08
Rafferty Uy28-Apr-06 6:08 
AnswerRe: Can you the DateTime class to always show and do things in Universal Time? Pin
Dustin Metzgar28-Apr-06 6:41
Dustin Metzgar28-Apr-06 6:41 
GeneralRe: Can you the DateTime class to always show and do things in Universal Time? Pin
Rafferty Uy28-Apr-06 6:52
Rafferty Uy28-Apr-06 6:52 
AnswerRe: Can you the DateTime class to always show and do things in Universal Time? Pin
Dustin Metzgar28-Apr-06 9:42
Dustin Metzgar28-Apr-06 9:42 
Good questions. Unspecified is what it will most likely be when you parse. But you can also use the SpecifyKind method.
<br />
DateTime dt = DateTime.SpecifyKind(DateTime.Parse("some string"), DateTimeKind.Local)<br />


Comparison is a tricky one as well. DateTime has an Int64 buried underneath it that represents the ticks that identify the time. There were two bits left over of the 64 that were not used, so in .Net 2.0 they decided to use them for the DateTimeKind enum. I imagine an equals should check the kind since it will probably just compare the two integers. Compare might do this as well. MSDN just tells you to make sure they're both in the same time zone. Smile | :)

www.logifusion.com
GeneralRe: Can you the DateTime class to always show and do things in Universal Time? Pin
Dan Neely28-Apr-06 7:05
Dan Neely28-Apr-06 7:05 
GeneralRe: Can you the DateTime class to always show and do things in Universal Time? Pin
Dustin Metzgar28-Apr-06 9:51
Dustin Metzgar28-Apr-06 9:51 
GeneralRe: Can you the DateTime class to always show and do things in Universal Time? Pin
Dan Neely28-Apr-06 10:13
Dan Neely28-Apr-06 10:13 
GeneralRe: Can you the DateTime class to always show and do things in Universal Time? Pin
Dustin Metzgar28-Apr-06 10:57
Dustin Metzgar28-Apr-06 10:57 
QuestionHow to set the current cell programatically in datagridview? Pin
Elvia Gonzalez28-Apr-06 5:50
Elvia Gonzalez28-Apr-06 5:50 
QuestionnBass problem Pin
Mayood28-Apr-06 5:25
Mayood28-Apr-06 5:25 
AnswerRe: nBass problem Pin
J4amieC28-Apr-06 5:36
J4amieC28-Apr-06 5:36 
AnswerRe: nBass problem Pin
Graham Nimbley28-Apr-06 8:56
Graham Nimbley28-Apr-06 8:56 
QuestionDynamic control data referance Pin
PDietz28-Apr-06 4:57
PDietz28-Apr-06 4:57 
AnswerRe: Dynamic control data referance Pin
PDietz28-Apr-06 8:37
PDietz28-Apr-06 8:37 
Questioncoding for search button Pin
ramyasangeet28-Apr-06 2:19
ramyasangeet28-Apr-06 2:19 
AnswerRe: coding for search button Pin
V.28-Apr-06 3:29
professionalV.28-Apr-06 3:29 
AnswerRe: coding for search button Pin
Larantz28-Apr-06 8:59
Larantz28-Apr-06 8:59 
QuestionADO.Net and OOP Pin
martin_hughes28-Apr-06 0:51
martin_hughes28-Apr-06 0:51 
AnswerRe: ADO.Net and OOP Pin
V.28-Apr-06 1:08
professionalV.28-Apr-06 1:08 
GeneralRe: ADO.Net and OOP Pin
Maqsood Ahmed28-Apr-06 1:28
Maqsood Ahmed28-Apr-06 1:28 
QuestionFont Selection ToolStripComboBox Pin
Cerasti27-Apr-06 23:48
Cerasti27-Apr-06 23:48 

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.