XALON Tools™
Get local datetime into Function node using moment.js
Get local datetime into Function node using moment.js
Couldn't load pickup availability
Get the exact local time in your workflows — using moment.js!
This automation shows how to fetch the local date and time inside a Function node using the moment library, with full timezone support via the GENERIC_TIMEZONE environment variable.
Perfect for timestamping events, logs, or custom reports with precise local time.
What it does:
🕒 Uses moment.js to get the local date and time
🌍 Respects your GENERIC_TIMEZONE environment setting
🧪 Outputs full date breakdown: year, month, day, hour, minute, second & more
💡 Requires whitelisting moment via NODE_FUNCTION_ALLOW_EXTERNAL=moment
✅ Includes setup instructions and ready-to-use Function code
Need help getting it working? We offer full configuration and testing for a one-time fee.
