In this tutorial, We will learn how to momentJS to subtract month. We will talk about how to subtract month to the current date in jquery. 

Lets learn by example:

<!DOCTYPE html>
        <title>JQuery Moment Add Month Example</title>
        <script src="" crossorigin="anonymous"></script>
        <script src="" crossorigin="anonymous"></script>
        <h1>JQuery Moment Add Month Example</h1>
    <script type="text/javascript">

        var startdate = '26-02-2021';
        //how many month you want to substract
        //I want 1 month
        var newDate = moment(startdate, "DD-MM-YYYY").subtract(1, 'months').format('DD/MM/YYYY');




Thanks, May this example will help you...