Safely convert a text date to a date

Safely convert a text date to a date
0 votes, 0.00 avg. rating (0% score)

Sometimes you just need to convert a text to a date, here is a function I have created that should do it without generating an error. If the input string is wrong, it will return a blank date.

Following is presuming text date format YYYYMMDD:

Year, Month and Day are all local integers.

zv7qrnb
Safely convert a text date to a date
0 votes, 0.00 avg. rating (0% score)

2 thoughts on “Safely convert a text date to a date

  1. Pingback: Safely convert a text date to a date | Pardaan.com

  2. Pingback: Dynamics NAV String->Date | Blog.NoiK.nl

Leave a Reply