10 Replies Latest reply on Jun 19, 2017 5:00 PM by Joel_Geraci

    Get date format from field

    McShaman Level 1

      I want to be able to get a date object form a date field. I am aware I can do this:

       

      var value = getField("date").value;
      var date = util.scand("yyyy-mm-dd", sDate);
      

       

      But this requires that I know what the date format is.

       

      I want to be able to get a date object from a date fields without having to bake the formatting string into the script.

       

      Any help would be appreciated