android,kotlin2021. 9. 28. 11:44

[kotlin] date custome formmater 방법

 

val current = LocalDateTime.now()
val formatter = DateTimeFormatter.ofPattern("yyyy.MM.dd HH:mm")

val date = current.format(formatter)

Posted by thdeodls85