Use something like:

@DateTime.Now.Localize(new CultureInfo(

If your model returns something like:

'message'

Then apply Raw, something like:

@{
  string myModel = "";
  myModel = Model.XmlRuleObject.Alerts[0].Property.ToString()
  @Html.Raw(@myModel);
}
alert("'@myModel'");

@:(@Model.SubType)

 

If I want brackets