I'm using Luxon to format a DateTime, and I need to it to be the following format, including the 'T' and 'Z' characters:
20150830T123600Z
I've tried to format the DateTime using:
let dateTimeNow = DateTime.now();
let formattedDateTime = dateTimeNow.toFormat('yyyyMMddTHHmmssZ');
But I get the format:
2021-05-25T12:43:37.043Z
How do I remove the '-', ':' and '.' symbols?