Epoch to date UTC+3

  date, epoch, javascript

I used this code to convert epoch to human readable date

var timestamp = 1293683278; 
var date = new Date(timestamp*1000); 
var year = date.getFullYear(); 
var month = date.getMonth() + 1; 
var day = date.getDate(); 
var hours = date.getHours();
var minutes = date.getMinutes(); 
var seconds = date.getSeconds();

I need to change it to UTC+3 how can i do this ?

Thanks for your help

Source: Ask Javascript Questions

LEAVE A COMMENT