How to set time in datetime field in extjs or sencha

Vikas Hire

I need some help , My question is that.. is there any option to set time also with date in extjs datetime field. please look below image. herer is my code for datetime picke.

{
      {          xtype: 'datefield',
                fieldLabel: 'Posted At',
                //labelWidth: 140,
                format: 'd-M-Y H:i',
                flex: 1,
                name: 'postedAt',
                allowBlank: false,
                value: new Date(),
                listeners: {
                    scope: this,
                    select: function (f, v) {
                    }
                }
            },

enter image description here

Makha

Ext.picker.Date doesn't support that, so we have to write custom component.

Here you can find the realization for ExtJS 4.1.0 and 4.2.1

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to Set Single Field Dirty in ExtJS

Set a default time for a field in a bootstrap datetime

How to set DateTime field as not required?

How to set a random time in a datetime

How could we set globally in Sencha ExtJS version 6.0.2 the timezone that we want to use?

Elasticsearch how to search by time in datetime field

How to do validations in sencha extjs mvc application

Set Start Date Field EXTJS

How to set time zone to datetime now in Python?

How to set a chrono DateTime to a specific date and time?

How to set time for imported function that uses datetime?

How do I set my HTML5 datetime-local input field to the current local date-time in Angular?

How to set field value expiration time?

How to set max time and min time in c# datetime picker

Nuxtjs/Vuejs set the default date time as current date time for the input field of type datetime-local

How to find records based on updated time on a datetime field?

how to compare current time with datetime field in db continuously?

How to update datetime field to contain only the date or time part

How convert epoch time integerfield to datetime field in django admin

Sencha EXTJS4 - How to change the icon of the buttons ItemSelector

How to create custom SASS in ExtJS for compiling with Sencha CMD

Sencha ExtJS How to have two buttons & text on same line

How to bind correctly a formula with a store in Sencha ExtJs v6?

How to generate "css-vars.js" in Sencha ExtJS 6.2

how can i override the text of datepicker's button in extjs(sencha)?

How to add attribute to Text field in Sencha Touch?

How to set only hour in datetime field using simple_form?

How to set datetime field in the symphony 3 for update or insert data?

Symfony2: How to set default value for a field DateTime