Creating meta tags for Linkedin – Publish Date “not found”

Programmatically setting a DateTime like 2019-10-21T00:00:00-0600 means a date and time format string like this: "yyyy-MM-ddTHH:mm:sszzz"

C# example:

<meta name="publish_date" property="og:publish_date" content="@post.Published.Value.ToString("yyyy-MM-ddTHH:mm:sszzz")">

https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)