I have a date in my database, but when I try to display it to the web(i'm using node js), my date automatically decreases by one,
for example :
in data base : 2018-03-06
but when i displaying in to web became 2018-03-05
i use like this
<label id ="start_date" class="view-label col-md-7" for="first-name"><%= new_event.start_date.getUTCDate().substring(0, 10)%></label>