Convert a JavaScript Date to SQL Server Date and Vice Versa

Overview A series of short examples on how to convert SQL Server dates to and from JavaScript dates. Prerequisites Moment.js The Moment.js library is used to parse, validate, and format date/time in JavaScript. Click here for more information about Moment.js. JavaScript Date to SQL Server Date First import Moment. Using Moment() with the Format() property

React Material Date Picker Validation with Formik

Overview Working examples of Material Date Pickers for start and end dates. Both dates are required and the end date must have a date on or after the start date. Real world scenarios – Events and reservations. Source Files for Both Examples Simple Solution First solution is simply disable certain dates using the Material Date