How to convert date format

First you read the date into a DateTime variable, as shown here:

Then you output to string in the format you want (“yyyyMMdd”) like this:

Details: Custom date and time format strings - .NET | Microsoft Learn