Jacob,

I agree -- in both directions:  convert(::Type(Date), x::Int64) and 
convert(::Type(Int64), x::Date).

Jeffrey

On Saturday, January 23, 2016 at 12:20:53 PM UTC-5, Jacob Quinn wrote:
>
> The easiest way right now is to do
>
> Date(Dates.UTD(735685))
>
> It's a bit awkward, and I think we should have a better default option. 
> Perhaps we should define `convert(::Type{Date}, x::Int64)` defined for this.
>
> On Sat, Jan 23, 2016 at 9:36 AM, Min-Woong Sohn <[email protected] 
> <javascript:>> wrote:
>
>> I want to convert an Int64 value 735685 to Date type (2016-1-22). 
>> convert(Date,735685) does not work.  Does anyone know how to do this?
>>
>>
>

Reply via email to