- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-07-22 10:10 AM
InStr(Trim([dateTime]); "01.01.0001")=0
Empty DateTime variable in Blue Prism results in "01.01.0001 00:00:00" which corresponds to value of Field DateTime.MinValue: DateTime.MinValue Field (System)
Microsoft | remove preview | ||||||
|
------------------------------
Stephan Knoell
Senior Developer
Roboyo
Munich
------------------------------
Answered! Go to Answer.
Helpful Answers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-07-22 01:32 PM
You can use IsDate() and IsDateTime() expression to validate the Dates .It would return a flag of true/False .
Hope this helps .
Thanks ,
Satish Gunturi
Senior Consultant
Ignite IPA Pvt Ltd
------------------------------
Satish Gunturi
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-07-22 01:32 PM
You can use IsDate() and IsDateTime() expression to validate the Dates .It would return a flag of true/False .
Hope this helps .
Thanks ,
Satish Gunturi
Senior Consultant
Ignite IPA Pvt Ltd
------------------------------
Satish Gunturi
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-07-22 01:49 PM
thats an even better way. Thanks!
Best,
Stephan
------------------------------
Stephan Knoell
Senior Developer
Roboyo
Munich
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-08-22 07:40 AM
------------------------------
If I was of assistance, please vote for it to be the "Best Answer".
Thanks & Regards,
Tejaskumar Darji
Sr. Consultant-Technical Lead
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-12-24 01:47 PM
Hi Stephan,
Above scenario will not help when you have date or datetime data item.
Would suggest creating an action in Object "Utility - Date and Time Manipulation" with name "DefaultDate", Input for code stage will be the date data item "inputDate" and Output as isDate a flag data item:
isDate = True
if inputDate = nothing
isDate = False
End if
if your element holds date then isDate will be True and if blank date is provided then flag isDate will be False.
Thanks,
Amol Ashok Jangam
Lead Consultant
Infosys.
