using System.Collections.Generic;
using System.Text.RegularExpressions;
public static void Main(string[] args)
string outputPath = "SomeNewOutputRBCReport_{NOW:ddMMyyyHHmm}";
string cleanedUpString = outputPath.Substring(outputPath.IndexOf("NOW"), outputPath.Length-outputPath.IndexOf("NOW")-1);
string type = cleanedUpString.Split(new[] {':'}, 2)[0];
string format = cleanedUpString.Split(new[] {':'}, 2)[1];
string outputPathWithoutTime = outputPath.Substring(0, outputPath.IndexOf("NOW")-1);
if (type.ToLower() == "NOW".ToLower())
Console.WriteLine(outputPathWithoutTime + DateTime.Now.ToString(format));