localendar Forums Homepage


Print at Nov 22, 2025, 6:32:54 AM

Posted by wfbonsaiclub at Apr 29, 2016, 2:40:43 PM
Re: Select current year on start_date parameter
Marc
I am developing the web site using Wix.com so I am not sure you will be able to see the code if I send you the link. However this is my crude attempt at the code (I said my knowledge is very limited)

p id="demo"></p>
<script>
var d = new Date();
var out = 3+"/"+1+"/"+d.getFullYear();
document.getElementById("demo").innerHTML = out;
</script>
<SCRIPT type="text/javascript"
src="document.write("//localendar.com/public/wfbonsaiclub?style=M1&include=Y&start_date="+out+"");”
></SCRIPT>

I am displaying the date to check that it is correct, and it displays ok. But I can’t get it to work in the start_date parameter.
It displays 3/1/2016 but nothing else. There is no error message from localendar.
I really appreciate any help you can give
Regards
Brian

Help! | Cobranding | Legal | Privacy Policy | About localendar.com | Contact Us