Angular:
http://angularjs.org/
by mrajcok
HTML
<div ng-controller="MyCtrl">
<form name="form" ng-submit="createShipment()">
<!-- Other fields -->
<input name="shipmentDate"
ng-pattern='/^(0?[1-9]|1[012])\/(0?[1-9]|[12][0-9]|3[01])\/(199\d)|([2-9]\d{3})$/'
required ng-model="shipment.ShipmentDate" type="text">
<span ng-show="form.shipmentDate.$error.required">Date Required!</span>
<span ng-show="form.shipmentDate.$error.pattern">Incorrect Format, should be MM/DD/YYYY</span>
<input class="btn-primary" ng-hide="!form.$valid" type="submit" value="Create">
</form>
</div>
JavaScript
var myApp = angular.module('myApp',[]);
function MyCtrl($scope) {}