none
How to remove the extra space in datetimepicker RRS feed

  • Question

  • In C# using windows application, in datetime picker
    when the day is a single digit...
    it puts an extra space in day field and month field as opposed to stripping out the space
    How to remove the space?
    Monday, September 11, 2006 2:54 PM

Answers

  • try using a trim when you obtain the value. Still need to know, where does it put a space? in the DateTimePicker control or when you obtain the value?

    if its in the DateTimePicker control itself (whatever it displays) take a look at the customformat to see if there is any space there, which you would have to remove in designer mode

    Monday, September 11, 2006 3:02 PM
    Moderator