var de = CultureInfo.GetCultureInfo("de-DE");
Engine jsEngine = new Engine(cfg => cfg.Culture(de));
jsEngine = jsEngine.Execute( // define function today
@"function today(days) {
const daysToAdd = isNaN(days) ? 0 : days;
var date = new Date();
date.setDate(date.getDate() + daysToAdd);
return date.toLocaleDateString('de-DE');
}");
// Returns "Mittwoch, 8. April 2020" in Chrome it will return "8.4.2020"
string value = jsEngine.Execute("today(7)").GetCompletionValue().ToString();
Как изменить его на возвращаемый запрошенный формат "8.4.2020"?