Click here to Skip to main content
15,885,910 members
Home / Discussions / C#
   

C#

 
GeneralRe: 'switch' statement efficiency in C# Pin
Guffa31-Jul-08 1:57
Guffa31-Jul-08 1:57 
GeneralRe: 'switch' statement efficiency in C# Pin
leppie31-Jul-08 2:17
leppie31-Jul-08 2:17 
GeneralRe: 'switch' statement efficiency in C# Pin
Guffa31-Jul-08 2:58
Guffa31-Jul-08 2:58 
GeneralRe: 'switch' statement efficiency in C# Pin
leppie31-Jul-08 5:46
leppie31-Jul-08 5:46 
GeneralRe: 'switch' statement efficiency in C# Pin
leppie30-Jul-08 22:51
leppie30-Jul-08 22:51 
GeneralRe: 'switch' statement efficiency in C# Pin
Guffa31-Jul-08 1:18
Guffa31-Jul-08 1:18 
AnswerRe: 'switch' statement efficiency in C# Pin
PIEBALDconsult3-Aug-08 17:07
mvePIEBALDconsult3-Aug-08 17:07 
QuestionConvert a Java timestamp to C# DateTime object Pin
cyrus_virus30-Jul-08 19:26
cyrus_virus30-Jul-08 19:26 
Hi,
i have a Java application that stores a timestamp object as a bigint in a MySql database.
Now, my C# application has to convert it to a DateTime object. How do i do this. I tried using the Datetime.FromFileTime(timestamp); but the output it gives is not correct. Here is the sample.

long tm = 1217404627332;

DateTime dt = DateTime.FromFileTime(tm);
Response.Write("Time: " + dt.ToLongDateString());


The output it gives is Tuesday, January 02, 1601 when it should be Wednesday, July 31, 2008

How do i do this? Any help is appreciated. Thanks in advance.
AnswerRe: Convert a Java timestamp to C# DateTime object Pin
Christian Graus30-Jul-08 20:03
protectorChristian Graus30-Jul-08 20:03 
AnswerRe: Convert a Java timestamp to C# DateTime object Pin
Mike Dimmick31-Jul-08 1:16
Mike Dimmick31-Jul-08 1:16 
AnswerRe: Convert a Java timestamp to C# DateTime object Pin
curtisk31-Jul-08 3:49
curtisk31-Jul-08 3:49 
Questiongetting excel cell reference Pin
Mogaambo30-Jul-08 19:19
Mogaambo30-Jul-08 19:19 
Questionproblem to solve the warning!! Pin
ktamanna30-Jul-08 18:33
ktamanna30-Jul-08 18:33 
AnswerRe: problem to solve the warning!! Pin
Christian Graus30-Jul-08 19:39
protectorChristian Graus30-Jul-08 19:39 
AnswerRe: problem to solve the warning!! Pin
Vimalsoft(Pty) Ltd30-Jul-08 19:44
professionalVimalsoft(Pty) Ltd30-Jul-08 19:44 
Questionwhat type of value does switch statement allow to use?such as switch(?){....} Pin
panyl30-Jul-08 16:18
panyl30-Jul-08 16:18 
AnswerRe: what type of value does switch statement allow to use?such as switch(?){....} Pin
Christian Graus30-Jul-08 16:55
protectorChristian Graus30-Jul-08 16:55 
AnswerRe: what type of value does switch statement allow to use?such as switch(?){....} [modified] Pin
DaveyM6930-Jul-08 23:37
professionalDaveyM6930-Jul-08 23:37 
AnswerRe: what type of value does switch statement allow to use?such as switch(?){....} Pin
PIEBALDconsult3-Aug-08 17:01
mvePIEBALDconsult3-Aug-08 17:01 
QuestionHow to File Upload to Code project Pin
bruze30-Jul-08 11:31
bruze30-Jul-08 11:31 
AnswerRe: How to File Upload to Code project Pin
Judah Gabriel Himango30-Jul-08 12:46
sponsorJudah Gabriel Himango30-Jul-08 12:46 
AnswerRe: How to File Upload to Code project Pin
jedliu204630-Jul-08 15:55
jedliu204630-Jul-08 15:55 
QuestionFocus Issue Pin
Zocrates30-Jul-08 11:02
Zocrates30-Jul-08 11:02 
AnswerRe: Focus Issue Pin
led mike30-Jul-08 11:24
led mike30-Jul-08 11:24 
GeneralRe: Focus Issue Pin
Zocrates30-Jul-08 11:27
Zocrates30-Jul-08 11:27 

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.