I'm using Google charts here's an example data:
var Data = New google.visualization.DataTable ({cols: [[id: 'work', label: 'employee's name', type: 'string'}, [[::: 'start date', label: 'start date' , Type: 'date'}], lines: [{v: 'mike'}, {v: new date (2008, 1, 28), [C: [[v: 'Alice', 'F ': '28 February, 2008'}}}, {c: [{v: 'Bob'}, {v: new date (2007, 5, 1)}}}, 'New date (2007, 11, 28 } {}: {C: [v: 'Floyd'}, {v: New Date (2005, 3, 13)}], {c: [V: 'Fritz'}, {v: New Date (2011) , 6, 1)}]}]}} I I want to use hours and minutes in the date variable also. I have not found an example syntax on the website, have any attempt before it? Thanks in advance.
New date () New date (new) Date (date string) New date (year, month, day [, hours, minutes, seconds, Milliseconds]) Then for 2011-06-01 at 1:37 pm, you can:
New date (2011, 5, 1 , 13, 37) Please note that months are zero-based, therefore represents the above 6th month (i.e. June).
NB I have very little acquaintance with Google charts, so I asked this question as O.P. I will accept the edit to make the question more relevant.
Comments
Post a Comment