CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Nov 2009
    Posts
    128

    Question display date using format ?

    i want to display date in a text box which is in a flex grid

    Code:
     
             Estval = bookval.EstimatedLife  'here value in Estval = 700
            Estval = Estval / 100                    'here value in Estval = 7
           MainBookFlexGrid(1).col = col
            MainBookFlexGrid(1).Row = 5
          MainBookFlexGrid(1).Text = Format(Estval, "00 yrs 00 mos")   'here it becomes 00 yrs 07 mos


    MainBookFlexGrid(1).Text = Format(Estval, "00 yrs 00 mos")--->this displays 00 yrs 07 mos instead of 07 yrs 00 mos


    where am i going wrong?
    plz help..
    Last edited by dskp; September 2nd, 2011 at 07:11 AM.

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