Using standard JavaScript Date.parse() method with JavaScript does not really work with SharePoint fields, since it does not take in account the locales of the SharePoint site.
In order to do that properly from skybow Solution Studio (regardless of Modern Forms, List Actions or Automation Actions), the easiest is to use moment.js JS library.
/// <reference path="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.js" /> //parse date by moment.js and get an integer representation var dateInt = Date.parse(moment([[datefield]])); //create a date object out of it var dateObject = new Date(dateInt);
Note 1: If you are using external URL (For example: https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.js) you need to add this URL into Trusted Script Sources in SharePoint admin center by this URL: https://yourtenant-admin.sharepoint.com/_layouts/15/online/AdminHome.aspx#/contentSecurityPolicy
Note 2: For more information on how to add reference path, please read the article: Referencing JavaScript libraries in your expressions