HanSolo / medusa

A JavaFX library for Gauges
Apache License 2.0
687 stars 129 forks source link

Set custom date format to any Clock skin. #180

Open milosic5 opened 4 years ago

milosic5 commented 4 years ago

Is there any method to set custom date format of any Clock skin?

HanSolo commented 4 years ago

do you need a specific format or dependent on the locale? Setting the locale should have an effect as far as I remember...will check at the weekend

milosic5 commented 4 years ago

Yes, I need specific custom date format which is not dependent on locale. For example instead of dots to put any sign or to remove seconds or hours or mins and for (YYYY-DD-MM) to be custom visible, orderable etc.

HanSolo commented 4 years ago

Ok so could add a custom date formatstring property where you can pass the formatString e.g. „dd.MM.YYYY“ and another property to switch the use of this customDateFormatString on/off. In a first step you then could create your own skin where you make use of the customDateFormatDateString. Your custom skin can be a fork from an existing skin with additional functionality. If you tell me the skin where you need the behavior I could also add it to this skin so that you don‘t need to fork an existing skin.