Sign in to follow this  
bender

date/time on x-axis

Recommended Posts

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

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 by Guest

Share this post


Link to post
Share on other sites

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this