Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert date to ist format javascript

var dateUTC = new Date("includeValidDateFormatHere");
var dateUTC = dateUTC.getTime() 
var dateIST = new Date(dateUTC);
//date shifting for IST timezone (+5 hours and 30 minutes)
dateIST.setHours(dateIST.getHours() + 5); 
dateIST.setMinutes(dateIST.getMinutes() + 30);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #date #ist #format #javascript
ADD COMMENT
Topic
Name
8+5 =