The date of the run must be displayed in Views\Runlog\GetLog.cshtml. The timestamp must not be displayed. You need to display the date of the run according to the business requirements. Which code segment should you use?
Suggested Answer:A🗳️
The log file has the ShortDate function which is defined as: Return RunDate.ToLocalTime().ToShortDateString(); This meets the requirement. Note: Scenario: ✑ The application uses the \Models\LogModel.cs model. ✑ The Html.DisplayFor method is typically used to display values from the object that is exposed by the Model property. The DisplayExtensions.DisplayFor<TModel, TValue> method (HtmlHelper<TModel>, Expression<Func<TModel, TValue>>) Returns HTML markup for each property in the object that is represented by the Expression expression. Incorrect: Not D: The RunDate attribute is defined as DateTime, but the timestamp (the time of day), should not be displayed. References: https://msdn.microsoft.com/en-us/library/system.web.mvc.html.displayextensions.displayfor(v=vs.118).aspx
"A" is correct; The log file has the ShortDate function which is defined as:
Return RunDate.ToLocalTime().ToShortDateString();
upvoted 3 times
...
...
This section is not available anymore. Please use the main Exam Page.70-486 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Lt_munchies
Highly Voted 4 years, 8 months agoDrazel
Most Recent 4 years, 8 months agoAbou_riyad
4 years, 6 months ago