Adding Content - Intermediate
  1. Knowledge Base
  2. Customer Portal
  3. Adding Content - Intermediate

Common formatting options for back office data items?

Sometimes (a lot of the time!) back-office systems provide data in a format that you wouldn't want to show the customer. I.e.

01/12/2018 00:00:00

 

To cater for this, and to be able to format things in a different way from simply removing the time, we have enabled content added in OneVu to leverage all of the formatting capabilities Microsoft provides for such translation.

 

The following illustrates examples of this:

 

What to add 

 

Example 

 

What it changes it to 

 

.ToString("C") 

 

100 

£100.00 

.ToString("F2") 

 

100 

100.00 

.ToString("dd/mm/yyyy") 

 

03/12/2018 00:00:00 

 

03/12/2018 

 

.ToString("dddd, dd MMMM yyyy") 

 

03/12/2018 00:00:00 

 

Monday, 3 December 2018