bender Report post Posted July 31, 2008 hi everyone! this is just a simple question...hope someone will help me...hehe my x-axis display dates, but it appears with the time also.. eg: 1995-03-01 00:00:00 how to make it hide the time? in my database, I did not specify the time, just the date. Thanks. Share this post Link to post Share on other sites
Arindam Report post Posted July 31, 2008 (edited) Hi When you retrieve data from SQL Query that time you can format the date value or when you plot in chart that time you have to manually format the date value. Edited July 31, 2008 by Guest Share this post Link to post Share on other sites
bender Report post Posted July 31, 2008 thanks for the reply... but how do you format the date? can you give some example code? sorry, i'm a total newbie... Share this post Link to post Share on other sites
Arindam Report post Posted July 31, 2008 Please tell me what type of database are you using? SQL Server or MY SQL? Share this post Link to post Share on other sites
bender Report post Posted July 31, 2008 i'm using MS ACCESS... Share this post Link to post Share on other sites
bender Report post Posted August 3, 2008 hello??? anybody got any ideas??? help me please....:crying: Share this post Link to post Share on other sites
Arindam Report post Posted August 4, 2008 hi, could you please use this type of sql query For MsAccess Database only SELECT Quantity, format(datepro,"dd/MM/yyyy") AS mydate FROM Factory_Output; here sql query format the date to dd/mm/yyyy format. you can use custom format also, like -> dd-mm-yyyy, mm/dd, yyyy/mm/dd etc. Share this post Link to post Share on other sites
bender Report post Posted August 4, 2008 hi Arindam...thanks for teaching me... i tried inserting that code into my coding...but i could not get it to work. I don't know where to put it specifically...can you please tell me where to include that query? sorry, i'm still learning..I thank you very much for teaching me! below is my code, please do check and see where in the code should i include the query. thanks again! mycode.txt Share this post Link to post Share on other sites
Arindam Report post Posted August 4, 2008 hi, Could you please try this code. test.php.txt Share this post Link to post Share on other sites
bender Report post Posted August 4, 2008 hi Arindam, it worked! thank you very much! have a nice day Share this post Link to post Share on other sites