We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30711
    • 70 Posts
    Hi,

    I’m using a calendar (http://www.electricprism.com/aeron/calendar/) to select dates to a form and I want to block all the dates before current date. I can do it manually writing today’s date to the script call, but that wouldn’t be very convenient, because then I need to change the date daily. I could replace the date in the script call with variable, but I don’t know how to get current date out from modx and it also needs to be in format: day month year(for example: 31 10 2009). Is this possible in modx?

    Thanks!

    EDIT: http://modxcms.com/forums/index.php/topic,4022.0.html

    I figured out from this snippet how to do it. Thanks anyway smiley