[HOW-TO] Create a custom Calendar using repeating group

Hello all! Update for everyone.

If you are interested in having a week view for your project, you can use this code now!

function getDaysInWeek(e,t){var a=new Date(e,0,1);a.setDate(a.getDate()+7*(t-1));var D=a.getDay();for(s=0;s<D;s++)a.setDate(a.getDate()-1);for(var n=new Date(a),r=[],g=[],s=0;s<7;s++)r.push(n.getDate()),g.push(new Date(+n)),n.setDate(n.getDate()+1);return g}

This will return 7 days of the week you pass it starting from Sunday.

Live Preview: Click
Editor: Click

If there is enough of a demand I can create a step by step tutorial for creating this, otherwise you can simply copy with workflows and paste into your app or view the editor to see how it is built.

Thank you,
Nic | nic@codurly.com
codurly.com
image

15 Likes