Welcome Guest Search | Active Topics | Sign In | Register

Can I change the input format for DateTimeColumn? Options
Jack.Wu
Posted: Sunday, June 27, 2010 7:17:27 PM
Rank: Advanced Member
Groups: Member

Joined: 5/22/2009
Posts: 33
Hello Sir,

I need to have a input field in the Grid control to accept 3 kinds of datetime format like "yyyy/MM/dd", "MM/dd", "dd". The format will be depended on the other field in the Grid. I had a custom culumn with drop down list to do it. My question is that since your Grid has a DateTimeColumn, how can I change the input format for it?

I also tried another option to use a customcolumn with a DatePicker to do it, but I hope that I can just use DateTimeColumn to do the same.
eo_support
Posted: Monday, June 28, 2010 9:03:32 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

The DateTimeColumn has a DatePicker property:

http://doc.essentialobjects.com/library/1/eo.web.datetimecolumn.datepicker.aspx

You will need to set the DatePicker's PickerFormat:

http://doc.essentialobjects.com/library/1/eo.web.datepicker.pickerformat.aspx

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.