Quote from
luishp on June 28, 2019, 6:08 pm
Hi @ronnie,
I'm afraid managing dates it's not yet an easy task in VisualNEO Web (nor JavaScript).
You can use this code:
BeginJS
var now = new Date();
var day = ("0" + now.getDate()).slice(-2);
var month = ("0" + (now.getMonth() + 1)).slice(-2);
var today = now.getFullYear()+"-"+(month)+"-"+(day) ;
$("#DateInput1").val(today);
EndJS
I will try to create a plugin with this library as soon as possible.
We are just scratching the surface about what will be possible to do with VisualNEO Web in the future :)
Regards.
Hi @ronnie,
I'm afraid managing dates it's not yet an easy task in VisualNEO Web (nor JavaScript).
You can use this code:
BeginJS
var now = new Date();
var day = ("0" + now.getDate()).slice(-2);
var month = ("0" + (now.getMonth() + 1)).slice(-2);
var today = now.getFullYear()+"-"+(month)+"-"+(day) ;
$("#DateInput1").val(today);
EndJS
I will try to create a plugin with this library as soon as possible.
We are just scratching the surface about what will be possible to do with VisualNEO Web in the future :)
Regards.