Date format in bottom zone

Feb 20, 2014 at 5:01 PM
Hello !

I have a small question, is there any way to force a format for the date in the bottom of the timeline band ?
In exemple, I set Days and display 20 days. I will get 1 Feb and the next days will be 2,3,4 etc.
I would like to always display 1 Feb, 2 Feb, etc.

Thanks in advance,

Have a nice day.
Apr 10, 2014 at 1:39 PM
Hi there!

I hope that you've already found the solution to your problem, but for those who may not yet have found a solution or need a solution, you can do this by changing the formatting from within the TimelineLib project for whatever version you are using and find the DateTimeConverter class. In here, the functions GetDecades, GetYear, GetMonth, and GetDay exist that dictate the formatting for those variants, for which I believe you are interested in the GetDay method. Changing
if (Calendar.GetDayOfMonth(dt) == 1)
    ret = Calendar.GetDayOfMonth(dt).ToString() + " " + GetMonth(dt);
    ret = Calendar.GetDayOfMonth(dt).ToString();
ret = Calendar.GetDayOfMonth(dt).ToString() + " " + GetMonth(dt);
should be a solution to your request.