CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2011
    Posts
    5

    Console. Convert int to time

    I need in a console application to have user input 1300 or 1330 and have that be converted somehow to 13:00 and 13:30 instead of 1330 the pure number.

    So that I can then take 1330 and have the user input an end time like 1430 and increase it by 25 percent to come out with 1445 or 2:45

    The input will always be HHMM in military time

  2. #2
    Join Date
    Jul 2005
    Location
    Louisville, KY
    Posts
    201

    Re: Console. Convert int to time

    We're not in the business of doing homework problems. If you make an attempt to do this on your own, we'll be more than happy to help if you get stuck on certain parts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured