ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Javascript variable in tag

May 10, 2011 12:38pm

Subscribe [2]
  • #1 / May 10, 2011 12:38pm

    mmodic

    4 posts

    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

    John Henry Donovan

    12339 posts

    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

    mmodic

    4 posts

    is current_time gives you server time ? I need exact client time.

  • #4 / May 12, 2011 6:08pm

    Lisa Wess

    20502 posts

    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!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases