I have a membership portal which I want to show:
Paid - If before the due date
Due - If past the due date
I’m struggling a little bit on the current date to compare it do, anyone have any ideas?
Thanks in advance
I have a membership portal which I want to show:
Paid - If before the due date
Due - If past the due date
I’m struggling a little bit on the current date to compare it do, anyone have any ideas?
Thanks in advance
Hi Peter,
Which part are you struggling with exactly?
getting todays date, have tried using:
class="text-success" dmx-show="fee_next_due < moment1.locale"><i class="fa fa-usd"> Paid</i>
class="text-danger" dmx-show="fee_next_due > moment1.locale"><i class="fa fa-usd"> Due</i>
But this is not working for me
It’s not moment that you need to use here. Use the datetime component to compare dates:
Duh, my fault mate. Obviously had a bit of brain fart there.