# Dates.value() applied to a list

**URL:** <https://discourse.julialang.org/t/dates-value-applied-to-a-list/24080>\
**Category:** General Usage\
**Created:** [May 10, 2019, 3:28pm UTC](https://discourse.julialang.org/t/dates-value-applied-to-a-list/24080 "2019-05-10T15:28:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dg.aragones](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dg.aragones/32/11275_2.png) [@dg.aragones](https://discourse.julialang.org/u/dg.aragones)\
**Post date:** [May 10, 2019, 3:28pm UTC](https://discourse.julialang.org/t/dates-value-applied-to-a-list/24080/1 "2019-05-10T15:28:08Z")

</div>

I have a list of dates in the form:

```julia
t=[2006-06-01,2006-06-02,2006-06-03]

```

And I want to apply the function `Dates.value()` to it. It works well for a single value, however, for a list like the one shown I get an error:

> ERROR: MethodError: no method matching value(::Array{Any,1})  
> Closest candidates are:  
> value(::Dates.Time) at /home/buildbot/build-worker/worker/juliapro-release-centos7-0\_6/build/tmp\_julia/share/julia/stdlib/v1.0/Dates/src/accessors.jl:46  
> value(::Dates.Period) at /home/buildbot/build-worker/worker/juliapro-release-centos7-0\_6/build/tmp\_julia/share/julia/stdlib/v1.0/Dates/src/periods.jl:10  
> value(::Dates.TimeType) at /home/buildbot/build-worker/worker/juliapro-release-centos7-0\_6/build/tmp\_julia/share/julia/stdlib/v1.0/Dates/src/accessors.jl:45  
> Stacktrace:  
> [1] top-level scope at none:0

Any idea how can I do it?

Thank you in advance for any help!

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [May 10, 2019, 3:59pm UTC](https://discourse.julialang.org/t/dates-value-applied-to-a-list/24080/2 "2019-05-10T15:59:09Z")

</div>

`Dates.value.(t)` - note the `.` and read [Functions · The Julia Language](https://docs.julialang.org/en/v1/manual/functions/#man-vectorized-1)
