469,323 Members | 1,511 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,323 developers. It's quick & easy.

automatic generation of hyphen while entering date value

in my project, the user can enter the date in the format of dd-mm-yyyy in the textbox. after entering the day value, automatic '-' (hyphen) has to be generated.. and after entering the month value also, '-' has to be automatically generated.. how to do this?
Jan 31 '09 #1
1 1589
acoder
16,027 Expert Mod 8TB
Use the onkeypress/onkeyup events to check the field value and add accordingly.
Jan 31 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Aussie Rules | last post: by
1 post views Thread by woessner | last post: by
3 posts views Thread by Bharathi | last post: by
8 posts views Thread by Rob Wilkerson | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by mdpf | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.