This article describes the ddd and dddd Custom Format Specifiers in LightSwitch Visual Studio 2012. The "ddd" Custom Format Specifier is used to represent the name of the day of the week in an abbreviated manner. This abbreviated name of week is fetched from DateTimeFormatInfo.AbbreviatedDayNames Property.
This article describes the "ddd" and "dddd" Custom Format Specifiers in LightSwitch Visual Studio 2012. "ddd" Custom Format Specifier The "ddd" Custom Format Specifier is used to represent the name of the day of the week in an abbreviated manner. This abbreviated name of week is fetched from DateTimeFormatInfo.AbbreviatedDayNames Property. "dddd" Custom Format Specifier The "dddd" Custom Format Specifier is used to represent the full name of the day of the week. This name of week is fetched from DateTimeFormatInfo.DayNames Property. Use the following procedure to create a sample showing how to use the "ddd" and "dddd" Custom Format Specifiers on a Screen. Step 1 Open the LightSwitch Application in Visual Studio 2012 and go to the Solution Explorer. Right-click on "Data Sources" and choose "Add Table". The table appears in the Table Designer window. Insert the records in the following table. Step 2 Now once again go to the Solution Explorer, right-click on "Screens" and choose "Add Screen". The Add New Screen dialog box appears. Select the "Editable Grid Screen" from the Screen Template, inside screen information, choose "Employee" under screen data and provide a name for the Screen and click the "OK" button. The Screen Designer appears as shown below Press F5 to run the application. Provide the information; we will get the following output. Step 3 Now stop debugging the application. From the Table Designer select the "DOB" record as shown in the figure below. Then go to the Format Pattern of Property window in the Table Designer and enter "ddd" in the format pattern property as shown below. Once again press F5 to run the application. This time we will get the following output. Step 4 Once again stop debugging the application and select the "DOB" record from the table. Now go to the Format Pattern of the Property window in the Table Designer and this time enter "dddd" in the format pattern property as shown below. Once again press F5 to run the application. This time we will get the following output.
Printing in C# Made Easy