Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hello,
I want to get an item's content of a specified date by using HistoricFieldValue.
The general definition of HistoricFieldValue is as follows: HistoricFieldValue(field-name, timestampconstant)
In my js script I'm trying to use it in this manner:
<%compute%>HistoricFieldValue("Content","March 21, 2017")<%endcompute%>
Normally it should work , but I think the problem is the date. What is a timestampconstant?
This Error message pops up
When i change it to
<%compute%>HistoricFieldValue("Content","Modified Date")<%endcompute%>
(This usage is senseless actually, but I want to describe the problem more precisely )
This error message occurs:
I hope somebody could help me how to use this HistoricFieldValue Function
Best regards
Martin
Solved! Go to Solution.
Hi Martin,
You may want to open a Support case for assistance with this, but try the following format for timestamp-constant:
MMM d, YYYY HH:MM:SS [e.g. timestamp("Jul 25, 2014 6:18:36")]
Hi Martin,
You may want to open a Support case for assistance with this, but try the following format for timestamp-constant:
MMM d, YYYY HH:MM:SS [e.g. timestamp("Jul 25, 2014 6:18:36")]
Hi Michael,
yes, this is it.
timestamp("Jul 25, 2014 01:00:00 PM")
THX for your help, i really appreciate it.