View Full Version : passing a value to a datefield

21 Jul 2014, 7:15 AM

I have a datefield with format 'd/m/Y H:i', i do datefield.setValue(date_) with date_ having hours = 13. The thing is, after the setValue statement the variable date_ loses the hours, meaning date_.getHours() = 0. Hope i'm being clear, but it seems like whatever the format of the datefield, datefield.setValue(date_) reset the date hours to 0 (corresponding to its default format as specified in the documentation). Please let me know if this is a bug or i'm using it not like i should.


1 Aug 2014, 9:27 AM

I'm not seeing the issue described when I try and create a test case from your description. Feel free to fork the fiddle below and modify the test case to better represent the test case you're working with.


1 Aug 2014, 3:54 PM
Well, i suspect the issue at that time was that i was using many timezones in my date calculations. sorry and thanks for your reply.