🕐
🗄️

Convert Timestamps for Database Queries

Convert dates to Unix timestamps for SQL WHERE clauses and date-range queries.

ບໍ່ຈໍາເປັນຕ້ອງເຂົ້າສູ່ລະບົບ
Now:2026-05-27 19:55:16 UTC1779911716s · 1779911716339ms
Unit:
Epoch quick reference

Database tips

🗄️

MySQL, PostgreSQL, and SQLite store UNIX_TIMESTAMP() values as seconds since the epoch. Use "Date → Timestamp" to build accurate WHERE clauses.

📊

MongoDB stores dates as milliseconds. Use millisecond mode when filtering by ISODate in aggregation pipelines.

💡

Avoid timezone surprises: always convert to UTC timestamp for database storage, then convert back to local time only in the display layer.

🔍

Copy the seconds timestamp directly into your SQL query: WHERE created_at BETWEEN 1700000000 AND 1700086400.

ມັນເຮັດວຽກແນວໃດ

1
ເຂົ້າ
Enter your data into the tool above. Everything stays local to your browser.
2
ຂະບວນການ
The tool processes your data instantly in your browser using JavaScript. No server, no waiting.
3
ດາວໂຫຼດ
Get your result instantly. Nothing is stored after you leave the page — complete privacy.

ເປັນຫຍັງຕ້ອງໃຊ້ຂອງພວກເຮົາ?

ບໍ່ເສຍຄ່າຢ່າງສົມບູນ - ບໍ່ມີຄ່າໃຊ້ຈ່າຍທີ່ເຊື່ອງໄວ້, ເຄີຍ
ບໍ່ມີບັນຊີ, ອີເມວ, ຫຼືເຂົ້າສູ່ລະບົບ
ໄຟລ໌ບໍ່ເຄີຍອອກຈາກອຸປະກອນຂອງທ່ານ
ບໍ່ມີຂອບເຂດຈໍາກັດຂະຫນາດໄຟລ໌ໃດໆ
ບໍ່ມີ watermarks ໃນຜົນຜະລິດໃດໆ

Also check out…

ຄໍາຖາມທີ່ຖາມເລື້ອຍໆ