how to get formatted date

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • poojadeepak
    New Member
    • Dec 2007
    • 6

    how to get formatted date

    hi, I have a datagrid bind with database. I can do every action what I want. I insert a date in format dd/mm/yyyy. But I want the result such that user should get automatic date format. It should not necessory to press"/". Is it possible?
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    What do you mean by automatic date format.

    How you want to format the date ?

    Comment

    • poojadeepak
      New Member
      • Dec 2007
      • 6

      #3
      I want user can enter only date values without separator. Separator should be generated automatically.( Like dot or slash)

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        You want that format to be

        Displayed in the grid
        or
        Stored in the database ?

        Comment

        • poojadeepak
          New Member
          • Dec 2007
          • 6

          #5
          I want date format displayed in grid

          Comment

          • daniel aristidou
            Contributor
            • Aug 2007
            • 494

            #6
            Originally posted by poojadeepak
            I want date format displayed in grid
            Ok....This is what to do asumming you are using vb08...
            Click on the datgrid...go to edit columns....
            Select the Corresponding column
            Go to to the Columnformating property in the window that opens.....anoth er window will open
            Then under one of the properties there you have the option of editing the format...

            Comment

            • poojadeepak
              New Member
              • Dec 2007
              • 6

              #7
              thanks for suggation.
              But I set the datagrid to database through coding. Hence I don't have columns at design time. I want to do it at runtime.

              Comment

              • krishnabhargav
                New Member
                • Feb 2008
                • 24

                #8
                Not sure if this is what you are looking for ...
                http://krishnabhargav. blogspot.com/2006/02/i-got-date-with-datetimepicker. html

                Search for "CustomFormat". ..

                Should be applicable for other dates too.

                Comment

                Working...