Code

Discussion on Javascript console - fConsole

Discussion on Javascript console - fConsole

Cart 12 sales

emanoilflorin supports this item

Supported

This author's response time can be up to 1 business day.

1 comment found.

Greetings, I found a bug in your code! If you call get date for today, you get 2017-11-13 instead of 2017-12-13. This code is wrong: return mm = (“0” + t.getMonth() + 1).slice(-2)

it should be: return mm = (“0” + (t.getMonth() + 1)).slice(-2) Thanks, Everardo

haha yeah – I think I’ll need to re-install re-sharper. Fixed! thanks.

don’t forget to fix the month logic as well. I bought a new version of fconsole but the error is still there. function _fn_getCurrentDate(format) { var d = new Date(), dd = (“0” + d.getDate()).slice(-2), mm = (“0” + (d.getMonth() + 1) ).slice(-2), // 12-15-2017; cunha

hey, I fix that too, but as I said I haven’t uploaded the files to codecanyon yet. Let me an email and I’ll send you the js file with latest updates. Thanks!

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey