can we mask the DateTime in the format in which milliseconds can be discarded
Hello and thank you for contacting Infragistics. Millseconds are not a requirement for creating a new DateTime. Please clarify your business requirements. Perhaps I can help you solve your requirements than to work around something that may or may not be needed.
Fyi, I've reproduced and logged a development issue per our conversation here:
https://es.infragistics.com/community/forums/f/ignite-ui-for-asp-net-core/125734/xamdatetimerangeslider-i-have-time-slider-and-when-i-give-start-and-end-value-for-that-its-tick-number-and-milliseconds-are-different-from-when-i-manually-slide-the-slider-to-its-start-and-end-point-logically-it-should-be-sam/549873?focus=true
What is the common time frame eg years, months, days which you plan on having the end users use the slider for? If you are mostly using years then please clarify how relevant milliseconds is within your business requirements.
Please try this:
public DateTime StartDateTime { get { return startDateTime; } set { if (startDateTime != value) { startDateTime = value.Subtract(new TimeSpan(0, 0, 0, 0, StartDateTime.Millisecond));
OnPropertyChanged(nameof(StartDateTime)); } } }
If i do this just suppose if i change the time in slider by just moving it in the way that only milliseconds are changes so now can i get the record of that change
That's why i want the slider units is in seconds and no milliseconds will be visible then means always the milliseconds should be zero