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.
no its not the particular time means the time can be anything depending on the data
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)); } } }