Looking between 2 dates

Jul 6 at 4:50 PM
Hello, I come today for some help, I'm trying to get result between two dates

So far the only thing I can think of is
        _var variable1 = sessionStorage.getItem('variable1');
        var variable2 = sessionStorage.getItem('variable2');
        var query = camlBuilder.Where().DateField("Created").EqualTo(variable1).And().DateField("Created").LessThanOrEqualTo(variable2).ToCamlQuery();_
This caml is new to me so I would apreciate it so much any help.

In SQL it would be something like " WHERE date BETWEEN 'variable1' AND 'variable2' "

Thank you in advance