Home Unable to use html helper of external api on razor page to display relative time
Reply: 0

Unable to use html helper of external api on razor page to display relative time

user939
1#
user939 Published in April 26, 2018, 5:37 am

I am having a datetime value like below :

2018-04-16 20:59:41.870

For above datetime i want to display relative time like below :

a minute ago

5 hours ago

I am trying to use api shown HERE which contains api to display relative time like below but i am unable to use its api :

Though i have included its api but getting error on RelativeTime :

@using Hangfire.Dashboard
@using Hangfire.Dashboard.Pages
@using Hangfire.Dashboard.Resources

This is how api is used is shown on their site : https://github.com/HangfireIO/Hangfire/blob/master/src/Hangfire.Core/Dashboard/Pages/ProcessingJobsPage.cshtml

Note : myDate is angular js scope variable.

I will appreciate any help :)

Update :

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.303864 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO