Forum Discussion
RobbSalzmann
2 years agoValued Contributor II
Here's an example of replacing the date in your filename with today's date:
Dim fileToMove As String = "onestream_ifrs16_2023-06-15.txt"
fileToMove = Regex.Replace(fileToMove, "\d{4}-\d{2}-\d{2}", DateTime.Now.ToString("yyyy-MM-dd"))
- Jones2 years agoContributor
Thanks. Could you elaborate how to declare RegEx in an extender businessrule? Above gives below error message
Thanks in advance
- Jones2 years agoContributor
I manage to figure out, and all works based on current date. Awesome big thanks for that!
- RobbSalzmann2 years agoValued Contributor II
Apologies! I left this important detail out. And you figured it out, nice work!
Thanks for the update.
Related Content
- 3 years ago
- 4 years ago