Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how can we find location by using date in javascript

This can be used by comparing GMT or Timeoffset and 
comparing it with real GMT or time Offset
Note(TimeZoneOffset For Nepal is -345)

Code Snipp;

var timeNow= new Date();
var timeOffset=timeNow.getTimezoneOffset();
if(timeOffset==-345){
  console.log("Country: Nepal");
}
 
PREVIOUS NEXT
Tagged: #find #location #date #javascript
ADD COMMENT
Topic
Name
6+5 =