https://kotlinlang.org logo
#dsl
Title
# dsl
a

Andreas Unterweger

01/15/2020, 2:22 PM
hello there, how do i get a formatted date string in a kotlin dsl gradle script?
its all about the imports:
Copy code
import java.text.SimpleDateFormat
import java.util.Date

val format = SimpleDateFormat("YYYY-MM-DD_HH-mm-ss")
val dir = format.format(Date())
m

Matteo Mirk

01/16/2020, 8:40 AM
this question should be in #gradle
2 Views