# Default Date Range for Search Forms

**YouTube:** [How to Set a Default Date Range for Search Forms?](https://www.youtube.com/watch?v=gORpL6NGx3o)

## How to Set a Default Date Range for Search Forms?

In this tutorial, we will show you how to configure a **default date range for search forms** across all documents in **Logic ERP**. This setting helps streamline your workflow by auto-filling the date fields during document searches.

***

### **Enable the Default Date Range Setting**

* Open the **Logic Admin Panel**.
* Navigate to the "**Global Settings"** and then select **"Others".**
* Under the **"Common Settings"** Locate the option labeled as: **“Default Date Range for Search Forms”.**
* **A dropdown menu** will appear.
* Select one of the following predefined options:
  * **Default**&#x20;
  * **Current Date**
  * **Last One Day**
  * **Current Month**
  * **Last N Days**

<figure><img src="/files/xfsiFqIeEI4m0i9co4sx" alt=""><figcaption><p>As mentioned above, follow the given steps and select the appropriate option from the dropdown as per your requirement.</p></figcaption></figure>

> For instance, selecting **"Current Date"** will auto-set the search date range to today's date in all search forms.

* Click **Save** to apply your changes.
* **Restart Logic ERP** to activate the setting across all applicable modules.

***

### **Functionality Review and Validation**

* Open the **Sale Bill** window.
* Right-click on the **Modify** button to open the search form.
* You’ll notice that the **“From” and “To” date fields** are already populated with the default range you selected (e.g., today’s date).

<figure><img src="/files/3fmIIPuPu6RqPeu8kFNP" alt=""><figcaption><p>As you may observe, the date range is set to display today’s date by default.</p></figcaption></figure>

> Users can still **manually adjust** the date range if required, offering both convenience and flexibility.

***

### **Conclusion**

The **“Default Date Range for Search Forms”** feature in Logic ERP improves efficiency by reducing repetitive date entry. It ensures faster document retrieval while allowing users to override the preset range when needed.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.logicerp.com/logic-erp-learning-hub-tutorials-and-best-practices/user-access/logic-global-admin/others/common-settings/default-date-range-for-search-forms.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
