-
Two digit expression for days of the month
Hi there,
I’m sure this question has been asked a thousand times but after much digging through here I seem to be coming up short.
I’m using this expression to get the days of the month to work on a slider
slider = effect(“Slider Control”)(“Slider”);
seconds = Math.round(slider%30);
but i need it to always show two digits when the value is less than ten.
so “01” instead of just “1”.
Can someone please show me what i’m missing.
Many thanks,
Jos