# Get queue items from date start to current datetime

**URL:** <https://forum.uipath.com/t/get-queue-items-from-date-start-to-current-datetime/701499>\
**Category:** Activities\
**Tags:** question, studio, queue, orchestrator, system, activities\
**Created:** [November 22, 2023, 3:43am UTC](https://forum.uipath.com/t/get-queue-items-from-date-start-to-current-datetime/701499 "2023-11-22T03:43:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ManjunathReddy](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@ManjunathReddy](https://forum.uipath.com/u/ManjunathReddy)\
**Post date:** [November 22, 2023, 3:43am UTC](https://forum.uipath.com/t/get-queue-items-from-date-start-to-current-datetime/701499/1 "2023-11-22T03:43:57Z")

</div>

I want get the Queue items which is added from date start to current datetime

what will be the exact date time i have to provide in get Queue item property.

Thanks in Advance

---

<div class="post-metadata">

**Author:** ![rikulsilva](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rikulsilva/32/462189_2.png) [@rikulsilva](https://forum.uipath.com/u/rikulsilva)\
**Post date:** [November 22, 2023, 3:53am UTC](https://forum.uipath.com/t/get-queue-items-from-date-start-to-current-datetime/701499/2 "2023-11-22T03:53:16Z")

</div>

Hi @ManjunathReddy

You can just use DateTime.Now in “To” field and the start date in “From” field.

Or

Just populate “From” field so the activity get the queue items from start date until time of execution

One point: the Get Queue Items activity return the maximum of 100 items by execution. If you need more, you need to do extra step

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [November 23, 2023, 5:02am UTC](https://forum.uipath.com/t/get-queue-items-from-date-start-to-current-datetime/701499/3 "2023-11-23T05:02:12Z")

</div>

@ManjunathReddy

May I know what is the start date?

Also it has limit of 100 so you might need to use a loop to get all the items

To field is not needed as it is today only

Here is an example of how to create loop to get all items

> [@How to get data from orchestrator queue](https://forum.uipath.com/t/how-to-get-data-from-orchestrator-queue/524602/23):
>
> @sruthesanju Please check the flow…I guess you missed incrementing or the condition might be wrong in the assign after for loop - counter = counter + qulsitems.count In Get queue items [image] cheers

Cheers

---

<div class="post-metadata">

**Author:** ![Kartheek\_Battu](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/kartheek_battu/32/307447_2.png) [@Kartheek\_Battu](https://forum.uipath.com/u/Kartheek_Battu)\
**Post date:** [November 23, 2023, 5:42am UTC](https://forum.uipath.com/t/get-queue-items-from-date-start-to-current-datetime/701499/4 "2023-11-23T05:42:52Z")

</div>

Hello @ManjunathReddy

1. Assign activity:  
startDate = New DateTime(2023, 01, 01)  
Set your start date

2. Assign activity:  
endDate = DateTime.Now  
Current date and time

3. Assign activity:  
dateFilter = $“DateCreated \>= ‘{startDate.ToString(“yyyy-MM-ddTHH:mm:ss”)}’ AND DateCreated \<= ‘{endDate.ToString(“yyyy-MM-ddTHH:mm:ss”)}’”

4. Get Queue Items activity:  
SpecificData = dateFilter

Thanks & Cheers!!!

---

<div class="post-metadata">

**Author:** ![sanjay3](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sanjay3/32/365624_2.png) [@sanjay3](https://forum.uipath.com/u/sanjay3)\
**Post date:** [November 23, 2023, 8:20am UTC](https://forum.uipath.com/t/get-queue-items-from-date-start-to-current-datetime/701499/5 "2023-11-23T08:20:08Z")

</div>

Hi @ManjunathReddy

In the Properties of Get Queue Items

From: DateTime.Parse(“2021-01-01”) ’ Or use your specific start date

To: DateTime.Now

If you want to include the entire day in your end date (up to 23:59:59 of the current day), you can do something like this:

To: New DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 23, 59, 59)

---

<div class="post-metadata">

**Author:** ![ishnarayan.pandey](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ishnarayan.pandey/32/272399_2.png) [@ishnarayan.pandey](https://forum.uipath.com/u/ishnarayan.pandey)\
**Post date:** [December 26, 2024, 11:13am UTC](https://forum.uipath.com/t/get-queue-items-from-date-start-to-current-datetime/701499/6 "2024-12-26T11:13:16Z")

</div>

In which field we should use this datefilter?  
dateFilter = $“DateCreated \>= ‘{startDate.ToString(“yyyy-MM-ddTHH:mm:ss”)}’ AND DateCreated \<= ‘{endDate.ToString(“yyyy-MM-ddTHH:mm:ss”)}’”
