Hi Mike,
Greetings from Syncfusion support.
We would like to inform that, our EJ2 date components will be rendered based on the current machine local time zone as per the standard behaviour. If you want to process the date value with desired format such as value without local time zone means you need to convert and make use of it as per the application needs externally.
Here, we have showcased the TimePicker and DateTimePicker value without converting the value to the time zone by using Angular Date pipe. Kindly refer the below code example.
|
<form [formGroup]="skillForm" novalidate id="formId">
<div class="form-group">
<ejs-timepicker formControlName="time" name="time" [(value)]='skillForm.selectedTime' placeholder='Select a time'
floatLabelType='Auto' >
</ejs-timepicker>
<ejs-datetimepicker formControlName="datetime" [(value)]='skillForm.selectedDateTime' name="datetime" placeholder='Select a date/time'
floatLabelType='Auto'>
</ejs-datetimepicker>
</div>
<fieldset>
<legend>FormGroup</legend>
<pre>TimePicker UTC value: {{ skillForm.selectedTime | date :'shortTime'}}</pre>
<pre>DateTimePicker UTC value: {{ skillForm.selectedDateTime | date :'short'}}</pre>
</fieldset>
</form> |
Please find the sample from the below link.
To know more about Date pipe in Angular platform, please refer the below Angular forum link.
Regards,
Berly B.C