Insert Birthdate like this ( dd/mm/yyyy )

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mimo
    New Member
    • Apr 2012
    • 2

    Insert Birthdate like this ( dd/mm/yyyy )

    Hi,

    how I can force user insert Birthdate by this way( dd/mm/yyyy )

    in the registration page.

    I am working on ASP.NET + C#
  • limweizhong
    New Member
    • Dec 2006
    • 62

    #2
    If there's some property called InputMask, and it's like Access, then putting 00\/00\/0000 in there (backslash-forward-slash will treat the forward-slash as a literal character) might work... not sure about C#.

    Edit: maybe you could look at http://en.csharp-online.net/MaskedTe..._Mask_property. It's actually called the Mask property.

    Comment

    • mimo
      New Member
      • Apr 2012
      • 2

      #3
      Thanks for your response

      I resolved it by another method


      I will put it here

      wait me

      Comment

      • lightwalker19
        New Member
        • Apr 2012
        • 22

        #4
        you're using ajax calendar extender or code?

        if you're using the calendar go to the property format and put "dd/MM/yyyy"

        if youre using code
        Code:
        string s = dateTime.ToString("dd'/'MM'/'yyyy");
        for code look here http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx

        Comment

        Working...