-
Posts
9 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Aar0n
-
-
hi
How to set the unidatetimepicker like 2017-03-08 0:00:00 or 2017-03-08 23:59:59?
thanks!
-
Hi,
Try this:
...
1. UnimDatePicker1 -> ClientEvents -> UniEvents .. beforeInit fn:
function beforeInit(sender, config) { config.picker = Ext.create('Ext.ux.picker.DateTime', { useTitles: false, doneButton: true, cancelButton: true, minuteInterval : 1, //slotOrder: ['month', 'day', 'year','hour','minute'], toolbar: { //items : datetimepickettoolbaritems } }); Ext.Date.patterns={CustomFormat: "d/m/Y H:i"}; // <------------ }
2. UnimDatePicker1 -> ClientEvents -> ExtEvents -> function change:
function change(sender, newDate, oldDate, eOpts) { ajaxRequest(sender, '_dateChange', ['val='+Ext.Date.format(newDate, Ext.Date.patterns.CustomFormat)]) }
3. UnimDatePicker1 -> OnAjaxEvent:
procedure TMainmForm.UnimDatePicker1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); var newDateTime : TDateTime; Fmt: TFormatSettings; begin if EventName = '_dateChange' then begin Fmt.ShortDateFormat:='dd/mm/yyyy'; Fmt.DateSeparator :='/'; Fmt.LongTimeFormat :='hh:mm'; Fmt.TimeSeparator :=':'; newDateTime := StrToDateTime(Params.Values['val'], Fmt); //ShowMessage(DateTimeToStr(newDateTime)); end; end;
Best regards.
Thank you so much!
-
after setting date and time: How can I read the datetime information?
-
Hi,
after setting date and time: How can I read the datetime information(unimdatepicker)?Best regards!
-
What is the name of demo?
What is your uniGUI version?
Thanks
Every demo when use showmessage(‘aaa’)then ajax error unexpected identifier why? 1346
-
Hi,
Which demo ?!
the unigui touch demo use showmessage ('xxxx'), being given ajax error unexpected identifier,
-
Run the demo file under the touch, use showmessage ('xxxx'), being given ajax error unexpected identifier, did not do any other settings, why?
-
运行Touch文件下的demo,使用showmessage(‘xxxx’),报错 ajax error unexpected identifier,未做任何其他设置,这是为什么?
How to set the unidatetimepicker like this?
in General
Posted
Delphi 10.1.2 and 0.99.96.1346