Use javascript variable in Phoenix EEx

You can write a cookie and retrieve it via conn.

write

document.cookie = 'time_from_utc=' + time_from_utc + ';path=/'

read

conn.cookies["time_from_utc"]