Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
To display the views for the last 7 days is this: @CounterService.GetValue(post.Id, 7)
How about the views today, should I make the 7 to 1? Thank you
Hi Rachelle,
If you want the views for the last 24 hours you'll use this:
@CounterService.GetValue(post.Id, 1)
If you want the views for a specific day you'll use:
@CounterService.GetValueBetween(post.Id, DateTime.Parse("2016-09-29 00:00"), DateTime.Parse("2016-09-29 23:59"))
// Herman
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How to display views of today?
To display the views for the last 7 days is this: @CounterService.GetValue(post.Id, 7)
How about the views today, should I make the 7 to 1? Thank you
Hi Rachelle,
If you want the views for the last 24 hours you'll use this:
If you want the views for a specific day you'll use:
// Herman
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.