oudalab / fajita

Event Data Tagging Tool
MIT License
7 stars 3 forks source link

Fast coding should handle the date input as the normal interface and the following is the rule. #190

Closed YanLiang1102 closed 7 years ago

YanLiang1102 commented 7 years ago

how the app do it is 1.if you put in "na" or empty in datePicker input, it will translate that into "1800-01-01" (sicne it has to be a dateformat like this in order to be stored in the db" and when the template render this on the brower, it will translate that into "na" 2.similar thing for "now" {which means until now or present role") if you put this in the datepicker input, it will translated into "2200-01-o1" and later it will be translated into "now" on the webpage Will attach an example here

YanLiang1102 commented 7 years ago

sicne jquery date time picker does not allow input alphabetical stuff, only number so now "" means it is not available 000 means it is until now. This is only in fast coding interface, normal interface will follow the rule above.