Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
QuestionWhat is difference Between Function Overloading and delegates in C# Pin
Ut Rahul25-Apr-06 5:03
Ut Rahul25-Apr-06 5:03 
AnswerRe: What is difference Between Function Overloading and delegates in C# Pin
Guffa25-Apr-06 5:10
Guffa25-Apr-06 5:10 
AnswerRe: What is difference Between Function Overloading and delegates in C# Pin
Tom Larsen25-Apr-06 5:22
Tom Larsen25-Apr-06 5:22 
GeneralRe: What is difference Between Function Overloading and delegates in C# Pin
Guffa25-Apr-06 7:15
Guffa25-Apr-06 7:15 
QuestionConvertion of String to HTML Pin
VenkataRamana.Gali25-Apr-06 4:48
VenkataRamana.Gali25-Apr-06 4:48 
AnswerRe: Convertion of String to HTML Pin
leppie25-Apr-06 6:48
leppie25-Apr-06 6:48 
AnswerRe: Convertion of String to HTML Pin
malharone25-Apr-06 6:54
malharone25-Apr-06 6:54 
QuestionRead date from Excel worksheet Pin
shultas25-Apr-06 4:31
shultas25-Apr-06 4:31 
Hey all,

I'm trying to get an application to read some cells from an excel spreadsheet. The problem that I am running into is with the date fields of the cells. The test code that I am using is:

string cellValue = ((Excel.Range)workSheet.Cells[3,1]).Value2.ToString();
DateTime dt = DateTime.FromOADate((double)((Excel.Range)workSheet.Cells[3, 1]).Value2);

When I display cellValue of a date field (1/2/2006 in the spreadsheet), it shows me a number which is 37257. When I display dt, it shows 1/1/2002. I cannot seem to get it to pull the right date from that cell, it is always messing up on the year (but it does appear to be always getting the month and day correct). I'm not sure how to go about fixing this, any help would be appreciated

Shultas
AnswerRe: Read date from Excel worksheet Pin
Drew McGhie25-Apr-06 7:58
Drew McGhie25-Apr-06 7:58 
AnswerRe: Read date from Excel worksheet Pin
Ed.Poore25-Apr-06 11:32
Ed.Poore25-Apr-06 11:32 
QuestionHow to connect to a BCM via TAPI Pin
Wayne Eastaugh25-Apr-06 4:30
Wayne Eastaugh25-Apr-06 4:30 
AnswerRe: How to connect to a BCM via TAPI Pin
Michael P Butler25-Apr-06 4:47
Michael P Butler25-Apr-06 4:47 
Questiongetting handle to applications icon Pin
g00fyman25-Apr-06 4:01
g00fyman25-Apr-06 4:01 
AnswerRe: getting handle to applications icon Pin
Eric Dahlvang25-Apr-06 8:10
Eric Dahlvang25-Apr-06 8:10 
QuestionDatagrid bound to collection : how to order columns ??? Pin
leplayb25-Apr-06 3:56
leplayb25-Apr-06 3:56 
AnswerRe: Datagrid bound to collection : how to order columns ??? Pin
J4amieC25-Apr-06 4:36
J4amieC25-Apr-06 4:36 
GeneralRe: Datagrid bound to collection : how to order columns ??? Pin
leplayb25-Apr-06 5:33
leplayb25-Apr-06 5:33 
Questionreading and placing in textarea Pin
kknadh8025-Apr-06 3:31
kknadh8025-Apr-06 3:31 
AnswerRe: reading and placing in textarea Pin
J4amieC25-Apr-06 3:34
J4amieC25-Apr-06 3:34 
AnswerRe: reading and placing in textarea Pin
CWIZO25-Apr-06 3:35
CWIZO25-Apr-06 3:35 
QuestionPassing Window Form Controls as method argument Pin
abhinish25-Apr-06 3:28
abhinish25-Apr-06 3:28 
AnswerRe: Passing Window Form Controls as method argument Pin
Le centriste25-Apr-06 3:41
Le centriste25-Apr-06 3:41 
AnswerRe: Passing Window Form Controls as method argument Pin
Paul Brower25-Apr-06 5:03
Paul Brower25-Apr-06 5:03 
QuestionCapturing Browser data in Windows Application Pin
nw.knowledge25-Apr-06 3:09
nw.knowledge25-Apr-06 3:09 
AnswerRe: Capturing Browser data in Windows Application Pin
J4amieC25-Apr-06 3:29
J4amieC25-Apr-06 3:29 

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.