Oct 25, 2012, 9:15 AM
[CLOSED] timefield 24 hour problem
Hi there,
this is my timefield (which belongs to me ;) :
When I enter values from 0000 to 1259 I get 00:00 to 12:59.
From 1301 to 2359 I get this is not a valid time.
I tried different timeformats like HH:mm, I changed the locale="de-DE" nothing helps.
I need the customer to enter 1305 to render like 13:05 ......
Why does it work until 1259 ???
Regards,
Holger
this is my timefield (which belongs to me ;) :
Html.X().TimeFieldFor(m=>m.ES_S3)
.ID("time_ES_S3")
.ForceSelection(false)
.AutoSelect(false)
.Listeners(li => { li.Render.Handler = "this.on('beforequery', function () { return false; });"; })
.HideBaseTrigger(true)
.Increment(1)
.Width(60)
.LabelAlign(LabelAlign.Top)
.FieldLabel("S3 Zeit")
.Format("H:i")
Everything is fine, besides the following :When I enter values from 0000 to 1259 I get 00:00 to 12:59.
From 1301 to 2359 I get this is not a valid time.
I tried different timeformats like HH:mm, I changed the locale="de-DE" nothing helps.
I need the customer to enter 1305 to render like 13:05 ......
Why does it work until 1259 ???
Regards,
Holger
Last edited by Daniil; Oct 26, 2012 at 4:53 AM.
Reason: [CLOSED]