I'm using Bootstrap's Datepicker on an input element, and was wondering - Is there was a way to display the date in a different format from how I might set the date in or get the date from the input element? The date comes to me from my data source in the format yyyymmdd, but I'd like to display the date as mm/dd/yyyy in the input element. For example:
- The date I'd like to initially seed the input element with is
20150721. - After setting that value, it's actually displayed as
07/21/2015. - The user changes it with the picker to
07/28/2015. - I get the value from the element as
20150728.
Is there a way to perform this format mapping using Bootstrap's datepicker? Thanks in advance!