Here, we simply apply a datetime picker to an input element.
$("input[type='text'].datetime").datetimePicker({ format: "%a, %b %-d, %Y %-I:%M%p" });