what is the marco method for <%# GetDate("NewsReleaseDate") %>

Nitin Patil asked on April 7, 2016 16:22

what is the marco method(text/xml) for "<%# GetDate("NewsReleaseDate") %> " this Aspx code.....please give me code.

Thanks Nitin

Recent Answers


David te Kloese answered on April 7, 2016 16:37 (last edited on December 10, 2019 02:30)

Hi,

What would you like to do with it? Just get a DateTime object?

You can do something like this:

- {%NewsReleaseDate%}
- {%NewsReleaseDate.ToDateTime()|(identity)GlobalAdministrator%}

Find more macros here:

https://docs.kentico.com/display/K9/Reference+-+Macro+methods

David

1 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on April 7, 2016 16:41 (last edited on December 10, 2019 02:30)

You might try to reference this page for your answer

https://docs.kentico.com/display/K9/Reference+-+Macro+methods

I believe it would be something on the lines of {% NewsReleaseDate.ToShortDateString() |(identity)GlobalAdministrator%}

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.