We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3112
    • 11 Posts
    I am trying to use the modx date picker in my cmp, however when I submit the form it inserts only the year into the database.

    Here is the part of my new event window that sets up the datepicker. I am just using the default formats defined in manager/assets/modext/util/datetime.js

    
            },{
                  xtype : 'xdatetime'
                  ,fieldLabel : _('xcal.sdate')
                  ,name : 'sdate'
                  ,allowBlank : false
                  ,dateWidth : 120
                  ,timeWidth : 120
            },{
                  xtype : 'xdatetime'
                  ,fieldLabel : _('xcal.edate')
                  ,name : 'edate'
                  ,allowBlank : false
                  ,dateWidth : 120
                  ,timeWidth : 120
    
            }]
    
    
    


    Thanks