Change javascript output locale -
im in trouble javascript. im not language, thought, maby can me it. script changes value of input id end_date. when chages prints in eng locale, need change lt. this: setlocale(lc_all, '$appui->user_lang.utf-8'); pls.
f.task_end_date.value = e.getutcfullyear()+tz2+(e.getmonth()+1)+tz1+e.getdate(); var url = '?m=public&a=date_format&dialog=1&field='+f.name+'.end_date&date=' + f.task_end_date.value;
you can use moment.js parse/format date format need: http://momentjs.com/
Comments
Post a Comment