asp.net using vb dateformat setting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chinni1
    New Member
    • Nov 2008
    • 24

    asp.net using vb dateformat setting

    Payment_Date
    04.11.2008
    00:00:00
    im getting like this.I don't want disply 00.00.00.
    plz give me suggestion
  • joedeene
    Contributor
    • Jul 2008
    • 579

    #2
    What does your code look like to return the date format? You can always remove the last line of your string, or last couple of characters you don't want.

    And are you just getting the 00:00:00 returned? Or all three lines?

    joedeene

    Comment

    • DrBunchman
      Recognized Expert Contributor
      • Jan 2008
      • 979

      #3
      You could use the ToShortDateStri ng function like this:

      Code:
      Date.Parse(strDate).ToShortDateString()
      Hope this helps,

      Dr B

      Comment

      Working...