<%JAVASCRIPTASYNC:javascript var date = new Date(); var month = date.getMonth(); // getMonth uses 0 for Jan and 11 for dec date.setDate(1); while (date.getMonth() == month) { var d = date.getFullYear() + '-' + (date.getMonth()+1).toString().padStart(2, '0') + '-' + date.getDate().toString().padStart(2, '0'); var content = roam42.dateProcessing.parseTextForDates(d).trim(); await roam42.smartBlocks.activeWorkflow.outputAdditionalBlock(content); date.setDate(date.getDate() + 1); } return '';%>
📋 Describe the SmartBlock
List out all the dates for the current month for planning
✅ Describe any prerequisites or dependencies that are required for this SmartBlock
Roam42 with SB
📷 Screenshot of your #42SmartBlock workflow/template from Roam
✂️ Copy of your #42SmartBlock from Roam
javascript var date = new Date(); var month = date.getMonth(); // getMonth uses 0 for Jan and 11 for dec date.setDate(1); while (date.getMonth() == month) { var d = date.getFullYear() + '-' + (date.getMonth()+1).toString().padStart(2, '0') + '-' + date.getDate().toString().padStart(2, '0'); var content = roam42.dateProcessing.parseTextForDates(d).trim(); await roam42.smartBlocks.activeWorkflow.outputAdditionalBlock(content); date.setDate(date.getDate() + 1); } return '';
%>📋 Describe the SmartBlock
List out all the dates for the current month for planning
✅ Describe any prerequisites or dependencies that are required for this SmartBlock
Roam42 with SB
📷 Screenshot of your #42SmartBlock workflow/template from Roam
💡 Additional Info