Hutool 39 ((better)) Direct

You can find further documentation and the source code on the Hutool GitHub Repository code examples

Generates a MongoDB-like 24-character unique ID (shorter than UUID). hutool 39

// Get current date as a string String now = DateUtil.now(); // Parse a string to a date DateTime date = DateUtil.parse("2023-10-27"); Use code with caution. 2. String Utilities You can find further documentation and the source