JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<small id="inputHelp" class="form-text text-muted-hint">Enter Time (UTC Format)</small>
</div>
<div>
<label for="startTime">Start Time:</label>
<input type="datetime-local" class="form-control" id="startTime" ng-model="startTime" max="{{maxDate | date: 'yyyy-MM-ddTHH:mm:ss'}}" onchange="handler(event)">
</div>
{{startTime}}
<div>
<label for="endTime">End Time:</label>
<input type="datetime-local" class="form-control" name="endTime" id="endTime" ng-model="endTime" [disabled]="!startTime">
</div>
JavaScript
function handler(e) {
document.getElementsByName("endTime")[0].min = e.target.value;
}