Click here to Skip to main content
15,881,652 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a line graph. but i wanted to color the part of the chart area if it is morning and the part of the chart area if its evening. How can I do that?
Posted

1 solution

VB
Dim ampm As String = DateTime.Now.ToString("tt", System.Globalization.CultureInfo.InvariantCulture)

will give you AM or PM, depending on that value you can change the chart
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900