Posted 30 November 2017, 2:47 am EST
Hello,
We are using WjInputDateTime as follows:
let inputContainer = this.elementRef.nativeElement.querySelector('#inputContainer');
let inputDom = new wjcInput.InputDateTime(inputContainer);
replaceInput.format = 'M/d/yy h:mm a';
this.renderer.listen(inputDom.inputElement,'blur', (event) => {
console.log('value', event.target.value);
})
We want date in following:
Example:
Selection in Date Time → 12th Oct 2012 and 12:30 AM
‘12-10-12 12:30 AM’ → (displaying currently as a string format on blur event) So can’t identify whether it is 2012 or 1912 likewise.
‘12-10-2012 12:30 AM’ (expected string format) or Date object will be more preferred.
Thanks