Is it possible to use javascript variable inside ee conditional. I have javascript function that returns current local date and I need to show posts that have same day in custom date field.
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
May 10, 2011 12:38pm
Subscribe [2]#1 / May 10, 2011 12:38pm
Is it possible to use javascript variable inside ee conditional. I have javascript function that returns current local date and I need to show posts that have same day in custom date field.
#2 / May 11, 2011 5:01am
mmodic,
There is a variable for current time . I would recommend using that
{current_time format="%Y %m %d %H:%i:%s"}#3 / May 11, 2011 5:50am
is current_time gives you server time ? I need exact client time.
#4 / May 12, 2011 6:08pm
Hi, mmodic -
Since this is more about using JS to get another computer’s time, I’m going to shift this down to Community Help. Some of our members are JS whizzes and hopefully someone can help you out.
Thanks!