datepicker Prototype with autoformat

I am looking to create a datepicker prototype to return the date and time in formats that our system is using,
this is what i have so far http://webix.com/snippet/9adbcb43
But i am having 2 problems with this,
one the creating of the parser everytime the getValue is called.

And how do i do something similar but for when the type is time

Hi,

You can create a parser once during Datepicker initialization via the corresponding setter:

webix.protoUI({
    name: 'datepickercadencie',
    outformat_setter:function(value){
  	   return webix.Date.dateToStr(value);
    }
}, webix.ui.datepicker);

Please, check the snippet: http://webix.com/snippet/a1967b10

thanks, worked perfect, but now i have the next step of the problem,

I need a input format also, the issue being that the webservice giving me the data for input, could use a different format to the one receiving the information.

http://webix.com/snippet/2cc52c5b

I tried this, but no matter what i try the input format cannot or will not parse the data.