EasyUI Forum
May 03, 2024, 08:37:25 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Datebox manual entry assumes Year 0000  (Read 8957 times)
phunksta
Jr. Member
**
Posts: 54


View Profile Email
« on: July 23, 2015, 08:00:09 AM »

Hi,

I have had an 'annoyance' logged by my users, in that when they start typing into the input field of a datebox in UK format, e.g. 23/07, the datebox starts to set the value according to what they type. Unfortunately the year 'jumps' to 0000 and if they hit enter at this point then this is what is submitted - in this case as a filter.

Is it possible to assume current year when the year result is 0?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: July 23, 2015, 08:15:58 AM »

Make sure you are using the correct 'formatter' and 'parser' functions. Please refer to http://www.jeasyui.com/demo/main/index.php?plugin=DateBox&theme=default&dir=ltr&pitem=Date%20Format
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!