Click here to Skip to main content
15,893,588 members
Home / Discussions / C#
   

C#

 
QuestionWrite to Windows Extended File Properties Pin
Member 165363613-Sep-05 19:21
Member 165363613-Sep-05 19:21 
QuestionSession Timed Out Pin
Thaynann13-Sep-05 18:52
Thaynann13-Sep-05 18:52 
AnswerRe: Session Timed Out Pin
Mark DeVol14-Sep-05 10:09
Mark DeVol14-Sep-05 10:09 
GeneralRe: Session Timed Out Pin
Thaynann14-Sep-05 11:38
Thaynann14-Sep-05 11:38 
GeneralRe: Session Timed Out Pin
Thaynann14-Sep-05 15:32
Thaynann14-Sep-05 15:32 
QuestiondateTime format Pin
dhol13-Sep-05 17:45
dhol13-Sep-05 17:45 
AnswerRe: dateTime format Pin
Christian Graus13-Sep-05 17:58
protectorChristian Graus13-Sep-05 17:58 
GeneralRe: How to format dataTime Pin
dhol13-Sep-05 23:36
dhol13-Sep-05 23:36 
Hi I have done a program using system.threading.timer....
now in that i will input the time in a textbox, say 03:00 pm..

now i have to format in that way, i mean hour:minute..

here is the part of my coding

//system timing
DateTime current = System.DateTime.Now;

//texbox,wher i wil give time

DateTime end = DateTime.Parse(textBox1.Text);

.//then i willcalculate the timespan.
TimeSpan ts = current.Subtract(end);

but only in the second part of my coding. i willgive as 03:00 pm in the textbox,which should be accepted.
so please help me how to format the datetime.

I read from MSDN and articles to use
{t}
, but i dont know exactly how to implement.. so please help me by explaining how to code that part..

js---ie, hour:minute wise...

so that if i give 05:30pm should be able to accept and calculate the timespan.
so please can anyone help me to solve this issue.

js
QuestionGet data from Access instead of notepad (urgent) Pin
nidhelp13-Sep-05 16:35
nidhelp13-Sep-05 16:35 
AnswerRe: Get data from Access instead of notepad (urgent) Pin
Christian Graus13-Sep-05 18:00
protectorChristian Graus13-Sep-05 18:00 
AnswerRe: Get data from Access instead of notepad (urgent) Pin
enjoycrack13-Sep-05 18:11
enjoycrack13-Sep-05 18:11 
GeneralRe: Get data from Access instead of notepad (urgent) Pin
nidhelp13-Sep-05 18:54
nidhelp13-Sep-05 18:54 
GeneralRe: Get data from Access instead of notepad (urgent) Pin
enjoycrack13-Sep-05 21:46
enjoycrack13-Sep-05 21:46 
QuestionA wonder of double convert to integer Pin
Libra13-Sep-05 15:56
Libra13-Sep-05 15:56 
AnswerRe: A wonder of double convert to integer Pin
Christian Graus13-Sep-05 16:14
protectorChristian Graus13-Sep-05 16:14 
GeneralRe: A wonder of double convert to integer Pin
Libra13-Sep-05 17:39
Libra13-Sep-05 17:39 
GeneralRe: A wonder of double convert to integer Pin
Christian Graus13-Sep-05 17:43
protectorChristian Graus13-Sep-05 17:43 
AnswerRe: A wonder of double convert to integer Pin
Guffa13-Sep-05 17:49
Guffa13-Sep-05 17:49 
GeneralRe: A wonder of double convert to integer Pin
Libra13-Sep-05 23:59
Libra13-Sep-05 23:59 
GeneralRe: A wonder of double convert to integer Pin
Dan Neely14-Sep-05 2:06
Dan Neely14-Sep-05 2:06 
GeneralRe: A wonder of double convert to integer Pin
Guffa14-Sep-05 3:12
Guffa14-Sep-05 3:12 
Questionwhy I Can't Get Monitor Information Using PrintMon.exe! Pin
szcococut13-Sep-05 15:45
szcococut13-Sep-05 15:45 
Questionmessage formatter Pin
mikenater13-Sep-05 14:02
mikenater13-Sep-05 14:02 
AnswerRe: message formatter Pin
Mohamad Al Husseiny13-Sep-05 14:07
Mohamad Al Husseiny13-Sep-05 14:07 
GeneralRe: message formatter Pin
mikenater22-Sep-05 17:35
mikenater22-Sep-05 17:35 

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.