package com.veve_plus.root.utils; import java.time.ZoneId; import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; public class DateTimeUtils { public static final String DATETIME_FORMAT_HOUR = "yyyyMMddHHmm"; public static String getVersionFormatDate(){ DateTimeFormatter dtf = DateTimeFormatter.ofPattern(DATETIME_FORMAT_HOUR); ZonedDateTime dateTime = ZonedDateTime.now(ZoneId.of("Asia/Ho_Chi_Minh")); return dtf.format(dateTime) + "0000"; } }