Results 1 to 3 of 3

Thread: date separator in .net

  1. #1

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539

    date separator in .net

    Used to be able to do this
    myDay = day(date())
    myMth = month(date())
    myYr = year(date())

    so how do u do the same in vb.net 2k3
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

  2. #2
    Lively Member
    Join Date
    Oct 2003
    Posts
    88
    You may want to check out DateTime.Parse:
    ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconparsingdatetimestrings.htm
    ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfSystemDateTimeClassParseTopic.htm

  3. #3
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Not sure if this is what you want:

    intDay = DateTime.Now.Day
    intMonth = DateTime.Now.Month
    intYear = DateTime.Now.Year

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