Constraint on Effective Date on a Form.

Hello Everyone I am trying to add constraint on the Effective Date for it to allow only Thursdays, In IPA normally we can just check for Date.Day()==4, which seems like JS and now I we can use JS in LPL, so was just wondering if anyone has applied such logic using JS or in any other manner.