Zaheer

Cannot display date

Posted 1 month ago by Zaheer

I am using following code to display a datetime value from mysql table to a datetime-local input element.

$('#date').text(data.invoice['date'].toString('Y-m-dTH:i'));

But instead of showing date from table it is displaying current date. What I am doing wrong ?

Please sign in or create an account to participate in this conversation.