About 82,100 results
Open links in new tab
  1. Timestamp (Java Platform SE 8 ) - Oracle

    A thin wrapper around java.util.Date that allows the JDBC API to identify this as an SQL TIMESTAMP value. It adds the ability to hold the SQL TIMESTAMP fractional seconds value, by allowing the …

  2. Get the Current Date and Time in Java - Baeldung

    Jan 8, 2024 · This article describes how we may get the current date, current time and current time stamp in Java.

  3. How to Get Current Timestamps in Java - Mkyong.com

    Mar 8, 2010 · This article shows few Java examples to get the current date time or timestamp in Java. (Updated with Java 8).

  4. How to get current timestamp in string format in Java?

    The java.time framework is built into Java 8 and later. These classes supplant the troublesome old legacy date-time classes such as java.util.Date, Calendar, & SimpleDateFormat.

  5. Java: Getting the Current Timestamp - javaspring.net

    Nov 12, 2025 · In this blog post, we will explore different ways to get the current timestamp in Java, covering both the legacy java.util package and the modern java.time package introduced in Java 8.

  6. 5 Methods to Get Current TimeStamp in JAVA - TecAdmin

    Apr 26, 2025 · When working with Java, there are several ways to obtain the current timestamp, which is essential for a variety of applications including logging events, measuring execution times, or …

  7. Java Program to Convert Date to TimeStamp - GeeksforGeeks

    Jul 23, 2025 · The TimeStamp class presents formatting and parsing methods to support JDBC escape syntax. It also combines the ability to hold the SQL TIMESTAMP fractional seconds value.

  8. How to Get Current Timestamp in Java (Formatted as MM/DD/YYYY …

    Sep 20, 2024 · This blog dives deep into thread-safe methods to get and format the current timestamp in Java, focusing on the modern java.time API (introduced in Java 8) while explaining why legacy …

  9. How to Get a Current Timestamp in Java? - JavaBeat

    Apr 30, 2024 · This write-up presented six different methods to get the current timestamp in Java; each method has its pros and cons; you can use the one that best suits your needs.

  10. Java Timestamp example: How to create a “current timestamp” …

    Aug 1, 2024 · For this test program, I’m using a MySQL database that is running on my location workstation. Next, I construct a Java SQL Timestamp object that represents the current date and …