How can I convert date in string format “2018-02-19” (y-m-d) to milliseconds so that I can use it for jcall setDate(long milliseconds)?
1 Like
You can have a look here:
en.wikibooks.org/wiki/Introducing_Julia/Working_with_dates_and_times
In the section moments in time:
julia> moment=now()
2017-02-01T12:45:46.326
julia> moment.instant
Base.Dates.UTInstant{Base.Dates.Millisecond}(63621636346326 milliseconds)
julia> Dates.value(moment)
63621636346326