Click here to Skip to main content
16,007,610 members
Home / Discussions / C#
   

C#

 
AnswerRe: Time Based Operation Pin
Kamal Sagar1-Aug-06 1:46
Kamal Sagar1-Aug-06 1:46 
QuestionHow does cab files work Pin
JacquesDP31-Jul-06 19:54
JacquesDP31-Jul-06 19:54 
Question3D Model Viewer Pin
eggie531-Jul-06 19:30
eggie531-Jul-06 19:30 
AnswerRe: 3D Model Viewer Pin
Dustin Metzgar1-Aug-06 5:22
Dustin Metzgar1-Aug-06 5:22 
QuestionChanging Skin Pin
Harikrk31-Jul-06 16:20
Harikrk31-Jul-06 16:20 
AnswerRe: Changing Skin Pin
Christian Graus31-Jul-06 19:16
protectorChristian Graus31-Jul-06 19:16 
GeneralRe: Changing Skin Pin
Harikrk1-Aug-06 4:20
Harikrk1-Aug-06 4:20 
QuestionHow to convert Integer value to Datetime value? Pin
bigeyed31-Jul-06 14:32
bigeyed31-Jul-06 14:32 
Hi..

I get 5 int values
For instance, they will look like the below...
int a = 2006; //year
int b = 3; //month
int c = 5; //day
int d = 1; //hour
int e = 3; //min
int f = 2; //second

but I want to put them in DB looks like "20060305010302" which means..
year has to be 4 digit, month has to be 2digit, day has to be 2digit..and so on...

so if I get the month data number 5, then I have to be able to convert number to 05 (because the DB column character is set for "yyyy:MM:dd:HH:mm:ss".

can I do this in one shot?? I can't think of anything good...
what i'm thinking is that comparing the length and if the length is shorter than 2 then, put the "0" in front of the number.... -_-...

please help... thanks
AnswerRe: How to convert Integer value to Datetime value? Pin
chrismerrill31-Jul-06 15:54
chrismerrill31-Jul-06 15:54 
AnswerRe: How to convert Integer value to Datetime value? Pin
Guffa31-Jul-06 19:08
Guffa31-Jul-06 19:08 
QuestionDetecting Ctrl + arrow keys Pin
Libor Tinka31-Jul-06 12:36
Libor Tinka31-Jul-06 12:36 
AnswerRe: Detecting Ctrl + arrow keys Pin
Jay Shankar31-Jul-06 15:34
Jay Shankar31-Jul-06 15:34 
Questionstatic keyword like C++ Pin
Maksymus00731-Jul-06 12:29
Maksymus00731-Jul-06 12:29 
AnswerRe: static keyword like C++ Pin
Guffa31-Jul-06 13:23
Guffa31-Jul-06 13:23 
AnswerRe: static keyword like C++ Pin
Kamal Sagar1-Aug-06 2:05
Kamal Sagar1-Aug-06 2:05 
Questionmy INSERT is not working Pin
Tom Wright31-Jul-06 10:40
Tom Wright31-Jul-06 10:40 
AnswerRe: my INSERT is not working Pin
Empires31-Jul-06 12:22
Empires31-Jul-06 12:22 
GeneralRe: my INSERT is not working Pin
Tom Wright31-Jul-06 12:30
Tom Wright31-Jul-06 12:30 
GeneralRe: my INSERT is not working Pin
Colin Angus Mackay31-Jul-06 12:36
Colin Angus Mackay31-Jul-06 12:36 
AnswerRe: my INSERT is not working Pin
Colin Angus Mackay31-Jul-06 12:39
Colin Angus Mackay31-Jul-06 12:39 
GeneralRe: my INSERT is not working Pin
Christian Graus31-Jul-06 19:18
protectorChristian Graus31-Jul-06 19:18 
GeneralRe: my INSERT is not working Pin
Colin Angus Mackay31-Jul-06 20:32
Colin Angus Mackay31-Jul-06 20:32 
GeneralRe: my INSERT is not working Pin
Tom Wright3-Aug-06 10:48
Tom Wright3-Aug-06 10:48 
QuestionCompressing directrory tree into single zip file Pin
Ilia Blank31-Jul-06 10:09
Ilia Blank31-Jul-06 10:09 
AnswerRe: Compressing directrory tree into single zip file Pin
Dustin Metzgar31-Jul-06 10:42
Dustin Metzgar31-Jul-06 10:42 

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.