NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or privileged information or otherwise be protected by law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail, permanently delete the e-mail from your system, and destroy all copies of the e-mail. The company has taken reasonable precautions to ensure no viruses are present in this e-mail. The company disclaims responsibility and liability for any loss or damage arising from the use of this e-mail or attachments.
Using a jQuery Date/Time Picker that offers a ton of options for formatting, ranges, limits, etc. Here's my setup (source code posted below):
Here's the source code for the Markup box and some notes:
jQuery/jQuery UI libraries - The current versions of jQuery and jQueryUI on uStore are out of date and the date/time picker fails. These are loaded from Google's Hosted Libraries.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js"></script>
<script src="/uStore/Images/SKIN-NAME-HERE/js/jquery-ui-timepicker-addon.js"></script>
<script lang="javascript">
var jQuery_1_9_1 = $.noConflict(true);
$(document).ready(function() {
jQuery_1_9_1('#datetime1').datetimepicker({
onSelect: function(){
getTime(this.value);
},
minDate: 1,
controlType: 'select',
timeFormat: 'HH:mm:ss',
pickerTimeFormat: 'hh:mm tt',
hourMin: 6,
hourMax: 23,
stepMinute: 15
});
});
</script>
<div class="custom-input">
<label>#DIAL_DISPLAY_NAME#</label>
<input type="text" name="datetime1" id="datetime1" value="#DIAL_VALUE#" onBlur="getTime(this.value)" />
</div>