Hi Ujjaldas,
The code I've mentioned above is in BP v5 and you have v6. Perhaps something may have changed and hence you are seeing the errors.
In any case Format is a Microsoft.VisualBasic function.
Either add 'Microsoft.VisualBasic' to the Namespace imports section of the Initialise tab
OR use any of the .net equivalent of the format and now functions. (Refer link https://www.dotnetperls.com/datetime-format-vbnet)
The code I've mentioned above is in BP v5 and you have v6. Perhaps something may have changed and hence you are seeing the errors.
In any case Format is a Microsoft.VisualBasic function.
Either add 'Microsoft.VisualBasic' to the Namespace imports section of the Initialise tab
OR use any of the .net equivalent of the format and now functions. (Refer link https://www.dotnetperls.com/datetime-format-vbnet)