Convert from java UTC time to JST time

// UTC time SimpleDateFormat utcdatestr = new SimpleDateFormat("yyyyMMddHHmmssSSS"); utcdatestr.setTimeZone(TimeZone.getTimeZone("UTC")); Date utcdate = utcdatestr.parse(dateOrg); // JST time SimpleDateFormat tokyoSdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
tokyoSdf.setTimeZone(TimeZone.getTimeZone("Asia/Tokyo")); date = tokyoSdf.format(utcdate);

Recommended Posts

Convert from java UTC time to JST time
Changes from Java 8 to Java 11
Sum from Java_1 to 100
From Java to Ruby !!
Launch Docker from Java to convert Office documents to PDF
Convert Java enum enums and JSON to and from Jackson
Migration from Cobol to JAVA
Convert Java Powerpoint to XPS
New features from Java7 to Java8
Connect from Java to PostgreSQL
Convert from ○ months to ○ years ○ months
How to convert Java radix
[Java] Convert ArrayList to array
From Ineffective Java to Effective Java
My 1880's ~ Fixed time zone from LMT to JST ~
[Personal memo] Frequently used Java grammar updated from time to time
[Java] How to convert a character string from String type to byte type
[Java] Convert 1-to-N List to Map
Java to be involved from today
From Java to VB.NET-Writing Contrast Memo-
Java, interface to start from beginner
The road from JavaScript to Java
[Android] Convert Android Java code to Kotlin
Memorandum Poem (updated from time to time)
[Java] Conversion from array to List
[Java] Convert array to ArrayList * Caution
How to convert param to hash with Rails controller (updated from time to time)
[Java] How to convert from String to Path type and get the path
[Rails] How to convert from erb to haml
Convert all Android apps (Java) to Kotlin
[Java] How to measure program execution time
[Java] Convert Object type null to String type
Connect from Java to MySQL using Eclipse
[Java] How to set the Date time to 00:00:00
Java 8 to start now ~ Date time API ~
Convert SVG files to PNG files in Java
From installing Eclipse to executing Java (PHP)
Post to Slack from Play Framework 2.8 (Java)
Java: How to send values from Servlet to Servlet
[Java] Flow from source code to execution
Convert from color temperature to RGB (sRGB)
Introduction to monitoring from Java Touching Prometheus
Precautions when migrating from VB6.0 to JAVA
Memo for migration from java to kotlin
Type conversion from java BigDecimal type to String type
I translated the grammar of R and Java [Updated from time to time]
[Java] From two Lists to one array list
Upsert from Java SDK to Azure Cosmos DB
Convert from C String pointer to Swift String type
[Reverse lookup] Spring Security (updated from time to time)
Connect to Aurora (MySQL) from a Java application
SpringBoot useful site collection (updated from time to time)
[Java] Set the time from the browser with jsoup
To become a VB.net programmer from a Java shop
Migrate from Java to Server Side Kotlin + Spring-boot
[Java] Convert DB code to code value using enum
How to get Class from Element in Java
How to convert a solidity contract to a Java contract class
[Updated from time to time] Links that are indebted
Touch all Spring "Guides" (updated from time to time)
[Java] Introduction to Java