nuFormatDateByString
Posted: Thu Aug 30, 2018 1:22 pm
I'm trying to set a Default date using the format that has been set in the Format Builder. I came across this: https://forums.nubuilder.cloud/viewtopic. ... dar#p13786
Obviously, the code was targeted for nuBuilder Pro. nuFormatDateByString() is not defined in v4. Is there a similar function to format a date?var d = $("#the_date").attr('data-nuformat');
var f = nuFormats[d].format
$("#the_date").val(nuFormatDateByString(new Date(), f));