I’m using windows form date time picker. But it is showing me only dd/mm/yyyy. I want to add one hour extra to it. How it can be achive? please help.
date time picker
help people,
I’m using windows form date time picker. But it is showing me only dd/mm/yyyy. I want to add one hour extra to it. How it can be achive? please help.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shweta LodhaPosted Feb 12, 2016, 2:47 AM
you can add an hour using below code:
dateTimePicker1.Value = dateTimePicker1.Value.AddHours(1);
Shweta LodhaPosted Feb 12, 2016, 2:51 AM
HimhaPosted Feb 12, 2016, 2:49 AM