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

Thread: DateFormat Issue

  1. #1
    Join Date
    Jan 2009
    Posts
    159

    DateFormat Issue

    Hi, I has a question here.

    For example, today is 05/11/2009, I have two text box.

    Actually it means that whatever what date i choose within the current month, the two textbox will display the last three months date.

    For Example, Current Month is November 2009 , Textbox 1 will show 01/08/2009, Textbox 2 will show 31/10/2009.

    Another example is Current Month is January 2009, Textbox 1 will show 01/10/2009, Textbox 2 will show 31/12/2008.

    May I know how the vb.net code should look like??
    Last edited by daniel50096230; November 5th, 2009 at 04:57 AM.

  2. #2
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,982

    Re: DateFormat Issue

    You can use DATE ADD, or DATE DIFF, depending on how you want to go about it.

    VB does date manipulation automatically
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center