bahry Posted April 17, 2017 Posted April 17, 2017 Hi, Is there a way to keep the slash mask ' / / ' in the TUniDateTimePicker so the user does need to type it while entering the date and to keep the : in the time field ' : : '. if the user types 01032017 which suppose to be 01/03/2017 with a date format dd/mm/yyyy on exit it will be 03/01/2017 Regards Quote
Sherzod Posted April 17, 2017 Posted April 17, 2017 Hi, You can try to use this approach for now: uses ... uniEdit; // need to add forDate: function afterrender(sender, eOpts) { $("#"+sender.inputEl.id).inputmask("99/99/9999",{placeholder:"mm/dd/yyyy"}); } forDateTime: function date.afterrender(sender, eOpts) { $("#"+sender.inputEl.id).inputmask("99/99/9999",{placeholder:"mm/dd/yyyy"}); } function time.afterrender(sender, eOpts) { $("#"+sender.inputEl.id).inputmask("99:99",{placeholder:"hh:mm"}); } Best regards, 1 Quote
bahry Posted April 17, 2017 Author Posted April 17, 2017 Thanks a lot, it works Best Regards Hi, You can try to use this approach for now: uses ... uniEdit; // need to add forDate: function afterrender(sender, eOpts) { $("#"+sender.inputEl.id).inputmask("99/99/9999",{placeholder:"mm/dd/yyyy"}); } forDateTime: function date.afterrender(sender, eOpts) { $("#"+sender.inputEl.id).inputmask("99/99/9999",{placeholder:"mm/dd/yyyy"}); } function time.afterrender(sender, eOpts) { $("#"+sender.inputEl.id).inputmask("99:99",{placeholder:"hh:mm"}); } Best regards, Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.