Hi,

got the answer in ASP.net forum. Seem that you need to cast or convert to
DateTime anyway in order to access to those prperties..no it works, but
still the chart doesnen't show up. Render looks like this :

 data1.addColumn('datetime', 'Datum');
        data1.addColumn('number', 'Savum');
        data1.addColumm('number', 'RPWS1');
        data1.addRows([[new Date(2012, 7, 29, 18, 0, 0), 161.87,
161.79], [new Date(2012, 7, 29, 20, 0, 0), 161.86, 161.77], [new
Date(2012, 7, 29, 22, 0, 0), 161.89, 161.79], [new Date(2012, 7, 30,
0, 0, 0), 161.95, 161.84], [new Date(2012, 7, 30, 2, 0, 0), 161.94,
161.85], [new Date(2012, 7, 30, 4, 0, 0), 161.9, 161.82], [new
Date(2012, 7, 30, 6, 0, 0), 161.87, 161.79], [new Date(2012, 7, 30, 8,
0, 0), 161.87, 161.78], [new Date(2012, 7, 30, 10, 0, 0), 161.85,
161.78], [new Date(2012, 7, 30, 12, 0, 0), 161.86, 161.79], [new
Date(2012, 7, 30, 14, 0, 0), 161.84, 161.77], [new Date(2012, 7, 30,
16, 0, 0), 161.84, 161.76], [new Date(2012, 7, 30, 18, 0, 0), 161.81,
161.74], [new Date(2012, 7, 30, 20, 0, 0), 161.77, 161.71], [new
Date(2012, 7, 30, 22, 0, 0), 161.79, 161.71], [new Date(2012, 7, 31,
0, 0, 0), 161.85, 161.74], [new Date(2012, 7, 31, 2, 0, 0), 161.91,
161.81], [new Date(2012, 7, 31, 4, 0, 0), 161.87, 161.79],....


It's probably wrong...

thanks, m


2013/2/24 Matevž Uroš Pavlič <[email protected]>

> Hi,
>
> no, same error. Don't know either. Maybe i am missing some directive
> (using)?
>
>
> 2013/2/24 asgallant <[email protected]>
>
>> I don't know what's going on there, since Day is a property of 
>> DateTime<http://msdn.microsoft.com/en-us/library/system.datetime.aspx>objects
>>  in C#.  Maybe this will work:
>>
>> rowsList.Add("[new Date(" + ((row["Datum"].Ticks - new DateTime(1970, 1,
>> 1, 0, 0, 0).Ticks) / 10000) + "), " + row["Sava"] + ", " + row["RPWS1"] +
>> "]");
>>
>>
>>
>> On Sunday, February 24, 2013 5:29:14 AM UTC-5, Matevz Uros Pavlic wrote:
>>>
>>> Hi again ;)
>>>
>>> i checked how it reads the Datum column from SQL using this code :
>>>  Object o = dt.Rows[0]["Datum"];
>>>         Response.Write(o);
>>> Response.Write(o.GetType());
>>>  Response is 29.8.2012 18:00:00 System.DateTime
>>>  But the problem is that using your code for formating this DateTime to
>>> JS DateTime produces error :
>>>  'object' does not contain a definition for 'Day' and no extension
>>> method 'Day' accepting a first argument of type 'object' could be found
>>> (are you missing a using directive or an assembly reference?)
>>>
>>> Don't know what's the problem,
>>>
>>>
>>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Visualization API" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to
>> [email protected].
>> Visit this group at
>> http://groups.google.com/group/google-visualization-api?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to