Extends JavaScript's Date prototype with methods to convert between Date objects and MySQL timestamp strings. Current stable version 0.1.6 (last released in 2015). Low maintenance, minimal API: toMysqlDate, toMysqlUTCDate, fromMysqlDate, fromMysqlUTCDate. Differentiator: monkey-patches native Date for no-import convenience; no dependencies. Not actively maintained, may need polyfills in modern environments.
npm install mysqldateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates converting Date to MySQL string and parsing MySQL string to Date using static and instance methods.
Use as standalone import only if no other Date polyfills are in use; isolate via module scoping if possible.
Consider using modern alternatives like dayjs, date-fns, or luxon with MySQL format functions.
Always pass UTC strings to fromMysqlUTCDate and local strings to fromMysqlDate. Verify by using toISOString() on result.
If millisecond precision needed, format manually or use alternative library.
Add `import 'mysqldate';` at top of entry file. Ensure it is the first import if using module bundler.
Run `npm install mysqldate` and verify node_modules/mysqldate exists.
Same fix as above: import side-effect before usage.
No dependency data recorded yet.