GDPR is mandatory after May 28, 2018
GDPR applies to all websites, apps & businesses from EU or with customers from the EU
Read the GDPR law text

Mandatory by law since 1 January 2014
CalOPPA applies to websites, apps & businesses in the US or with customers from California, USA
Read "California Assembly Bill AB 370" text or read a summary of Bill AB 370