I have the following javascript function, where i am getting 2 variables from our system (expireddate
+ modifieddate
)+ i am getting the current Date, as follow:-
function(){
var expirydate = item.get_item('ExpireDate');
var modifieddate = item.get_item('Modified');
var currentdate = new Date();
now in my case all the variables will be in this format Tue Jun 11 2019 00:00:00 GMT+0100 (British Summer Time)
.. and i am not facing any issue since my pc is also using the (British Summer Time)
date, so the var currentdate = new Date();
will be compatible with other formats... but my question is how i can guarantee that var currentdate = new Date();
will always be in the (British Summer Time)
date regardless of the users' PCs settings? so if the user is using another date format, to have the var currentdate = new Date();
in (British Summer Time)
date format ? can i for example get the current date from external source?