You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I convert the Shamsi date to gregorian date with the following snippet:
var m = moment.from('1401/6/1', 'fa', 'YYYY/MM/DD');
const result = m.locale('en').format('YYYY/MM/DD'); // 2022/08/23
Now, the day is 23, After converting the result to the date object the day will get 22, Why? const date = new Date(result); // 2022-08-22T19:30:00.000Z
The text was updated successfully, but these errors were encountered:
I convert the Shamsi date to gregorian date with the following snippet:
Now, the day is 23, After converting the result to the date object the day will get 22, Why?
const date = new Date(result); // 2022-08-22T19:30:00.000Z
The text was updated successfully, but these errors were encountered: