René's URL Explorer Experiment


Title: Date formatting | java.evolved

Open Graph Title: Date formatting | java.evolved

X Title: Date formatting | java.evolved

Description: Format dates with thread-safe, immutable DateTimeFormatter.

Open Graph Description: Format dates with thread-safe, immutable DateTimeFormatter.

X Description: Format dates with thread-safe, immutable DateTimeFormatter.

Opengraph URL: https://javaevolved.github.io/datetime/date-formatting.html

direct link

Domain: javaevolved.github.io


Hey, it has json ld scripts:
  {
    "@context": "https://schema.org",
    "@type": "TechArticle",
    "headline": "Date formatting",
    "description": "Format dates with thread-safe, immutable DateTimeFormatter.",
    "url": "https://javaevolved.github.io/date-formatting.html",
    "publisher": {
        "@type": "Organization",
        "name": "java.evolved",
        "url": "https://javaevolved.github.io"
    },
    "mainEntityOfPage": {
        "@type": "WebPage",
        "@id": "https://javaevolved.github.io/date-formatting.html"
    }
}
  
  {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://javaevolved.github.io/"
        },
        {
            "@type": "ListItem",
            "position": 2,
            "name": "Date/Time",
            "item": "https://javaevolved.github.io/#datetime"
        },
        {
            "@type": "ListItem",
            "position": 3,
            "name": "Date formatting"
        }
    ]
}
  

theme-color#f97316
mobile-web-app-capableyes
apple-mobile-web-app-status-bar-styleblack-translucent
apple-mobile-web-app-titlejava.evolved
og:typearticle
og:site_namejava.evolved
og:localeen
og:imagehttps://javaevolved.github.io/og/datetime/date-formatting.png
og:image:width1200
og:image:height630
og:image:typeimage/png
twitter:cardsummary_large_image
twitter:imagehttps://javaevolved.github.io/og/datetime/date-formatting.png

Links:

java.evolvedhttps://javaevolved.github.io/
https://github.com/javaevolved/javaevolved.github.io
← All patternshttps://javaevolved.github.io/
https://javaevolved.github.io/datetime/duration-and-period.html
https://javaevolved.github.io/datetime/instant-precision.html
Homehttps://javaevolved.github.io/
Date/Timehttps://javaevolved.github.io/#datetime
🐛 Report a code issuehttps://github.com/javaevolved/javaevolved.github.io/issues/new?template=code-issue.yml&title=%5BCode%20Issue%5D%20Date%20formatting&category=datetime&slug=date-formatting
🌐 Report a translation issuehttps://github.com/javaevolved/javaevolved.github.io/issues/new?template=translation-issue.yml&title=%5BTranslation%5D%20Date%20formatting%20%28English%29&locale=en&pattern=date-formatting&area=Pattern%20content
💡 Suggest a new patternhttps://github.com/javaevolved/javaevolved.github.io/issues/new?template=new-pattern.yml
𝕏https://x.com/intent/tweet?url=https%3A%2F%2Fjavaevolved.github.io%2Fdatetime%2Fdate-formatting.html&text=Date%20formatting%20%E2%80%93%20java.evolved
🦋https://bsky.app/intent/compose?text=Date%20formatting%20%E2%80%93%20java.evolved%20https%3A%2F%2Fjavaevolved.github.io%2Fdatetime%2Fdate-formatting.html
inhttps://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fjavaevolved.github.io%2Fdatetime%2Fdate-formatting.html
https://www.reddit.com/submit?url=https%3A%2F%2Fjavaevolved.github.io%2Fdatetime%2Fdate-formatting.html&title=Date%20formatting%20%E2%80%93%20java.evolved
Let us know.https://github.com/javaevolved/javaevolved.github.io/issues/new?template=code-issue.yml&title=%5BCode%20Issue%5D%20Date%20formatting&category=datetime&slug=date-formatting
DateTimeFormatter ↗https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/time/format/DateTimeFormatter.html
View proof source ↗https://github.com/javaevolved/javaevolved.github.io/blob/main/proof/datetime/DateFormatting.java
Date/Time Intermediate Instant with nanosecond precision Java 8 // Millisecond precision only long millis = System.currentTimeMillis(); // 1708012345678 Java 9+ // Microsecond/nanosecond precision Instant now = Instant.now(); // 2025-02-15T20:12:25.678901234Z long nanos = now.getNano(); Hover to see modern ➜ JDK 9+ → https://javaevolved.github.io/datetime/instant-precision.html
Date/Time Beginner java.time API basics Pre-Java 8 // Mutable, confusing, zero-indexed months Calendar cal = Calendar.getInstance(); cal.set(2025, 0, 15); // January = 0! Date date = cal.getTime(); // not thread-safe Java 8+ LocalDate date = LocalDate.of( 2025, Month.JANUARY, 15); LocalTime time = LocalTime.of(14, 30); Instant now = Instant.now(); // immutable, thread-safe Hover to see modern ➜ JDK 8+ → https://javaevolved.github.io/datetime/java-time-basics.html
Date/Time Intermediate HexFormat Java 8 // Pad to 2 digits, uppercase String hex = String.format( "%02X", byteValue); // Parse hex string int val = Integer.parseInt( "FF", 16); Java 17+ var hex = HexFormat.of() .withUpperCase(); String s = hex.toHexDigits( byteValue); byte[] bytes = hex.parseHex("48656C6C6F"); Hover to see modern ➜ JDK 17+ → https://javaevolved.github.io/datetime/hex-format.html
java.evolvedhttps://javaevolved.github.io/
Bruno Borgeshttps://github.com/brunoborges
GitHub Copilothttps://github.com/features/copilot
modern-css.comhttps://modern-css.com
View on GitHubhttps://github.com/javaevolved/javaevolved.github.io

Viewport: width=device-width, initial-scale=1.0

Robots: index, follow


URLs of crawlers that visited me.