Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
IgDatePicker - selecting value from datepicker in javascript outputs the datetime in browser timezone
posted

Hi,

generated code for Igdatepicker is below

<div class="ui-igeditor-input-container ui-corner-all"><input type="text" class="ui-igedit-input hasDatepicker" id="DatesScheduledShipDateValueEditingInput" role="combobox" aria-label="Date Picker" style='height: 100%; text-align: left;'><input type='hidden' name='DatesScheduledShipDateValue' value='2015-09-07T18:30:00.000Z' data-rule-required='true' data-msg-required='Value must be specified.' data-valtype='igDatePicker'></div>

if i try to get the value in javascript gives me below value

$("#DatesScheduledShipDateValue").igDatePicker('value')
Tue Sep 08 2015 00:00:00 GMT+0530 (India Standard Time)

but i need the value in UTC.. how can i select this(the value which is associated with the generated HTMl is value="2015-09-07T18:30:00.000Z")

pcan anyone help me on this

Thanks,

Shwetha