All Products
Demos
Pricing
Services
Blogs
Docs & Support
Search
Shopping cart
Login
Contact Us
Get A Free Trial
close mobile menu
Telerik Forums
/
UI for ASP.NET AJAX Forum
/
Input
/
MaskEdit Question
Cancel
Telerik UI for ASP.NET AJAX
Resources
Buy
Try
Feed for this thread
3 posts, 1 answers
L
298 posts
Member since:
Apr 2008
Posted 22 Dec 2009
Link to this post
hi
I have this code:
<telerik:RadMaskedTextBox ID="DOBTextBox" Text='<%# Bind("DOB") %>' runat="server" Mask="##/##/####">
</telerik:RadMaskedTextBox> 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
L
298 posts
Member since:
Apr 2008
Posted 23 Dec 2009
Link to this post
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
Answer
Shinu
17764 posts
Member since:
Mar 2007
Posted 23 Dec 2009
Link to this post
Hello,
Try TextWithLiterals instead of Text.
ASPX:
<
telerik:RadMaskedTextBox
TextWithLiterals
=
'<%# Bind("DOB") %>'
ID
=
"DOBTextBox"
runat
=
"server"
Mask
=
"##/##/####"
>
</
telerik:RadMaskedTextBox
>
-Shinu.
Back to Top
Close