Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfif IsDefined("RDC")>
- <cfset data = #DateFormat(RDC,"yyyy-mm-dd")#>
- <cfelse>
- <cfset data = #DateFormat(Now(),"yyyy-mm-dd")#>
- </cfif>
- <input id="RDC" name="RDC" class="form-control">
- <script>
- jQuery.datetimepicker.setLocale('pt');
- jQuery('#RDC').datetimepicker({
- i18n:{
- pt:{
- months:[
- 'Janeiro','Fevereiro','Março','Abril',
- 'Maio','Junho','Julho','Agosto',
- 'Setembro','Outubro','Novembro','Dezembro',
- ],
- dayOfWeek:[
- "Seg", "Ter", "Qua", "Qui",
- "Sex", "Sab", "Dom.",
- ]
- }
- },
- timepicker:false,
- format:'d-m-Y',
- value:'#data#'
- });
- </script>
Add Comment
Please, Sign In to add comment