DateTime and TimeSpan ..... help please.

This is a discussion on DateTime and TimeSpan ..... help please. within the C# Programming forums, part of the General Programming Boards category; Now i am not an expert c# programmer but i am learning. please bare with me until i get better ...

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    16

    DateTime and TimeSpan ..... help please.

    Now i am not an expert c# programmer but i am learning. please bare with me until i get better but, here is the issue:
    i have created a program that uses the axCalendar and when the date is changed i update a textBox with the new axCalendar1._Value. I also added two more textBoxes to this simple form for time conversion. That being said, the issue i am encountering is encapsulated in the time functions. I need to have one textBox referance the totalSeconds and one referance the standard DateTime.Now.TimeOfDay value. I am having alot of trouble trying to accomplish this. I have searched all over for conversion code and samples but, i have not found anything yet.
    The program would need to accept one input, lets say "SystemTime_TextBox.Text" (this would be the TotalSeconds box) and Displays the real like readable time in "StandardTime_TextBox.Text" ( hh:mm:ss am/pm), this would need to function on both sides so the end user can enter in either and get the return in the opposite textbox. the issue i am having is in converting between the two types. the inputted time(system) is a decimal value (86400 per 24 hours) adding and subtracting seems to be coded right but, i cannot seem to get the convert back to standard to function. if anyone has maybe some sample code or a link i can try and follow thats all im asking. either way thanks all.

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    16
    grrr... i am starting to think maybe i should remove this functionality from the program. i think i have pulled half my hair out of my head over this thing.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. calculate elapsed seconds
    By George2 in forum C# Programming
    Replies: 11
    Last Post: 04-21-2008, 01:18 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21