This is a migrated thread and some comments may be shown as answers.
MaskEdit Question
2 Answers 28 Views
This is a migrated thread and some comments may be shown as answers.
L
Top achievements
Rank 1
L asked on 23 Dec 2009, 03:02 AM
hi

I have this code:

  <telerik:RadMaskedTextBox ID="DOBTextBox"  Text='<%# Bind("DOB") %>'  runat="server" Mask="##/##/####">
                </telerik:RadMaskedTextBox> &nbsp; day/month/year

But when i looked at the stored value in the DB, it show 23122009. How can i capture 23/12/2009 format in the DB?

I am using Nvarchar(20) for my DOB field. thanks

2 Answers, 1 is accepted

Sort by
0
L
Top achievements
Rank 1
answered on 23 Dec 2009, 07:12 AM
hi

All i want is display it in grid in this format 23/12/2009 rather then 23122009.

Since i am using masktextbox. How should i display the format 23/12/2009. Thanks
0
Accepted
Shinu
Top achievements
Rank 1
answered on 23 Dec 2009, 07:37 AM
Hello,

Try TextWithLiterals instead of Text.

ASPX:
 
<telerik:RadMaskedTextBox TextWithLiterals='<%# Bind("DOB") %>' ID="DOBTextBox" 
        runat="server" Mask="##/##/####"
    </telerik:RadMaskedTextBox> 

-Shinu.
Tags
Input
Asked by
L
Top achievements
Rank 1
Answers by
L
Top achievements
Rank 1
Shinu
Top achievements
Rank 1
Share this question
or