Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
25-01-22 05:13 PM
Dear All,
I want to get just the date value in a collection but I am getting date alon with Time Stamp. How to get only Date.

------------------------------
Marina Dutta
------------------------------
I want to get just the date value in a collection but I am getting date alon with Time Stamp. How to get only Date.
------------------------------
Marina Dutta
------------------------------
Answered! Go to Answer.
1 BEST ANSWER
Helpful Answers
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
26-01-22 04:44 AM
Hi Marina,
The reason you are facing this error is because you are trying to convert a whole collection into a single date item which is not possible.
The way you can achive your use case is by first creating an output collection with a date column which would have no rows initially.
Then you need to iterate though your input collection which has all the dates with the time stamps using Loop stage. Then once you are within the Loop stage, add a blank row to your output collection using 'Add Row' action from 'Internal - Collections' VBO and then post this you use a calculation stage and write the expression:
Here the names of the collections and the column will depend on how you are defining them in your case, but this is the overall approach that you need to follow.
------------------------------
----------------------------------
Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily
Regards,
Devneet Mohanty
Intelligent Automation Consultant
Blue Prism Community MVP | Blue Prism 7x Certified Professional
Website: https://devneet.github.io/
Email: devneetmohanty07@gmail.com
----------------------------------
------------------------------
The reason you are facing this error is because you are trying to convert a whole collection into a single date item which is not possible.
The way you can achive your use case is by first creating an output collection with a date column which would have no rows initially.
Then you need to iterate though your input collection which has all the dates with the time stamps using Loop stage. Then once you are within the Loop stage, add a blank row to your output collection using 'Add Row' action from 'Internal - Collections' VBO and then post this you use a calculation stage and write the expression:
ToDate([Sorted Collection.Date column])
and store the same into Output Collection.Date column
Here the names of the collections and the column will depend on how you are defining them in your case, but this is the overall approach that you need to follow.
------------------------------
----------------------------------
Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily
Regards,
Devneet Mohanty
Intelligent Automation Consultant
Blue Prism Community MVP | Blue Prism 7x Certified Professional
Website: https://devneet.github.io/
Email: devneetmohanty07@gmail.com
----------------------------------
------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
25-01-22 11:34 PM
Hi @Marina Dutta,
If you write the value of the DateTime item into a Date item (i.e. using Calculation stage) you will get just the date.
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
If you write the value of the DateTime item into a Date item (i.e. using Calculation stage) you will get just the date.
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
26-01-22 03:02 AM
Dear Eric,
I am using the collection item and trying to convert it to Date but getting error. My all the dates are stored in collection called sorted collection.


------------------------------
Marina Dutta
------------------------------
I am using the collection item and trying to convert it to Date but getting error. My all the dates are stored in collection called sorted collection.
------------------------------
Marina Dutta
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
26-01-22 04:44 AM
Hi Marina,
The reason you are facing this error is because you are trying to convert a whole collection into a single date item which is not possible.
The way you can achive your use case is by first creating an output collection with a date column which would have no rows initially.
Then you need to iterate though your input collection which has all the dates with the time stamps using Loop stage. Then once you are within the Loop stage, add a blank row to your output collection using 'Add Row' action from 'Internal - Collections' VBO and then post this you use a calculation stage and write the expression:
Here the names of the collections and the column will depend on how you are defining them in your case, but this is the overall approach that you need to follow.
------------------------------
----------------------------------
Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily
Regards,
Devneet Mohanty
Intelligent Automation Consultant
Blue Prism Community MVP | Blue Prism 7x Certified Professional
Website: https://devneet.github.io/
Email: devneetmohanty07@gmail.com
----------------------------------
------------------------------
The reason you are facing this error is because you are trying to convert a whole collection into a single date item which is not possible.
The way you can achive your use case is by first creating an output collection with a date column which would have no rows initially.
Then you need to iterate though your input collection which has all the dates with the time stamps using Loop stage. Then once you are within the Loop stage, add a blank row to your output collection using 'Add Row' action from 'Internal - Collections' VBO and then post this you use a calculation stage and write the expression:
ToDate([Sorted Collection.Date column])
and store the same into Output Collection.Date column
Here the names of the collections and the column will depend on how you are defining them in your case, but this is the overall approach that you need to follow.
------------------------------
----------------------------------
Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily
Regards,
Devneet Mohanty
Intelligent Automation Consultant
Blue Prism Community MVP | Blue Prism 7x Certified Professional
Website: https://devneet.github.io/
Email: devneetmohanty07@gmail.com
----------------------------------
------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
26-01-22 05:13 AM
Dear Devneet Mohanty
Thank You for your solution. It worked.
Regards,
Marina
------------------------------
Marina Dutta
------------------------------
Thank You for your solution. It worked.
Regards,
Marina
------------------------------
Marina Dutta
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
26-01-22 05:33 AM
Glad that your query got resolved @Marina Dutta 🙂
------------------------------
----------------------------------
Regards,
Devneet Mohanty
Intelligent Automation Consultant
Blue Prism Community MVP | Blue Prism 7x Certified Professional
Website: https://devneet.github.io/
Email: devneetmohanty07@gmail.com
----------------------------------
------------------------------
------------------------------
----------------------------------
Regards,
Devneet Mohanty
Intelligent Automation Consultant
Blue Prism Community MVP | Blue Prism 7x Certified Professional
Website: https://devneet.github.io/
Email: devneetmohanty07@gmail.com
----------------------------------
------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.
