c# - Asp.net Calendar control -


I have an asp.net calendar control that is used to select a date and to store it in database It is also adding the time which makes it difficult to report. We do not need a date only. How can I stop the inclusion of calendar controls ... or make the same time for every date ?

DateTime has the property of a date, date.name For the 00:00:00 will return the date.

Therefore, when using calendar, use the selected date, calendar. Selected date Date . It still gives a date time but with a zero time.

While using a date time without time, use ToString ("dd / mm / yyyy").


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -