471,857 Members | 1,903 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,857 software developers and data experts.

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 1654
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
reply views Thread by NeoPa | last post: by
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.