Ext.form.field.Time commits as Date-Time value

shasan

I have an Ext.form.field.Time editor on my screen. I would like it to represent only time values, not date-time. I know that it is still an Ext.form.field.Date behind the scenes and the editor ignores the date part. But I want it also to commit as a time to the server. For this purpose I set the property submitFormat: 'H:i'. But for an input of 02:00, extjs still sends down the response as 2008-01-01T02:00:00. Any ideas on how to make it commit with the time portion only? Thanks.

(I am on Extjs 4.2.2)

cstsui

I created a Fiddle here and it seems like it is working correctly. I've also tried calling form.submit() and the form data shows up correctly as well. How are you getting the data? Are you calling timefield.getValue() instead of timefield.getSubmitValue()? That seems to return the full date string.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to set date and time as a default value in angularjs form field

From Dev

MYSQL Combine date and time field to datatime value

From Dev

timestamp without time zone, date/time field value out of range:

From Dev

timestamp without time zone, date/time field value out of range:

From Dev

how to convert date time if passing null value in date field

From Dev

Ext.form.field.Date Localization

From Dev

How to save value in correct format if I received it by getEditor from Ext.form.field.Date?

From Dev

Django default value date and time when form opens up

From Dev

Django default value date and time when form opens up

From Dev

kibana changing date time field

From Dev

Access Date/Time field updates

From Dev

Informix - Combining date and time field

From Dev

Date field keeps showing time

From Dev

Elasticsearch: Unknown time in date field

From Dev

Get date and time form postgresql

From Dev

Converting Date field and Character Time field to DateTime

From Dev

Converting a date and and a char 'time' field to a single date

From Dev

SQL-only find time and not date in Access Date/Time field

From Java

PHP Make form field read-only conditionally based on date & time

From Dev

Converting a numeric value to date time

From Dev

Add date time as default value

From Dev

C combining date and time value

From Dev

Add date time as default value

From Dev

How to format a date with a time value?

From Dev

convert value of TimeOfLastReset to date time

From Dev

Git: list tags and date/time for all commits in a branch

From Dev

C# windows form datagridview cellformating event with date value and time value

From Dev

Is there a way to store date and time info in a field in QGIS?

From Dev

Java 8 Date and Time Temporal Field

Related Related

  1. 1

    How to set date and time as a default value in angularjs form field

  2. 2

    MYSQL Combine date and time field to datatime value

  3. 3

    timestamp without time zone, date/time field value out of range:

  4. 4

    timestamp without time zone, date/time field value out of range:

  5. 5

    how to convert date time if passing null value in date field

  6. 6

    Ext.form.field.Date Localization

  7. 7

    How to save value in correct format if I received it by getEditor from Ext.form.field.Date?

  8. 8

    Django default value date and time when form opens up

  9. 9

    Django default value date and time when form opens up

  10. 10

    kibana changing date time field

  11. 11

    Access Date/Time field updates

  12. 12

    Informix - Combining date and time field

  13. 13

    Date field keeps showing time

  14. 14

    Elasticsearch: Unknown time in date field

  15. 15

    Get date and time form postgresql

  16. 16

    Converting Date field and Character Time field to DateTime

  17. 17

    Converting a date and and a char 'time' field to a single date

  18. 18

    SQL-only find time and not date in Access Date/Time field

  19. 19

    PHP Make form field read-only conditionally based on date & time

  20. 20

    Converting a numeric value to date time

  21. 21

    Add date time as default value

  22. 22

    C combining date and time value

  23. 23

    Add date time as default value

  24. 24

    How to format a date with a time value?

  25. 25

    convert value of TimeOfLastReset to date time

  26. 26

    Git: list tags and date/time for all commits in a branch

  27. 27

    C# windows form datagridview cellformating event with date value and time value

  28. 28

    Is there a way to store date and time info in a field in QGIS?

  29. 29

    Java 8 Date and Time Temporal Field

HotTag

Archive