function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sandeep sankhlasandeep sankhla 

​Can someone help me in overriding the Salesforce1 date picker in my VF page ??

Can someone help me in overriding the Salesforce1 date picker in my VF page ??

I am trying to get the salesforce1 datepicker look and feel in my VF page, which I am using as overriden page for Account..I want to get the same look and feel for date picker and date time picker...
Best Answer chosen by sandeep sankhla
Vivek_PatelVivek_Patel
Hi Sandeep,

I am using following for external websites build on force.com. Look and feel is very good and the doucmentation is also very helpful.

https://github.com/smalot/bootstrap-datetimepicker

Regards,
Vivek Patel.


Please like or mark this as best answer if this answers your question to help others find better answer and improve the quality of developer forum.

All Answers

Vivek_PatelVivek_Patel
Hi Sandeep,

I am using following for external websites build on force.com. Look and feel is very good and the doucmentation is also very helpful.

https://github.com/smalot/bootstrap-datetimepicker

Regards,
Vivek Patel.


Please like or mark this as best answer if this answers your question to help others find better answer and improve the quality of developer forum.
This was selected as the best answer
Mack StedMack Sted
you can use this link https://github.com/smalot/bootstrap-datetimepicker and help it to solve the problem regarding overriding the Salesforce1 date picker and also get information regarding, BIN List. (https://www.imdb.com/list/ls081930811/)
Priya ShindePriya Shinde
Thanks for sharing. I like to celebrate Diwali cause this is the biggest festival of India. Check here Happy Diwali Wishes in Marathi (https://marathivarsa.com/Entertainment/Diwali-Wishes-in-marathi/)
Hindi AbhmaanHindi Abhmaan
I want to record all my call logs on my android smartphone in my salesforce org. on a daily basis. Do I need to create a native android app for that? What are the requirements to implement such functionality?
roweg maryaroweg marya
The Survey is designed to get feedback from customers who shop at Lowes stores (https://www.vingle.net/posts/6067953" target="_blank) and websites. 
muhammad asad 16muhammad asad 16
Certainly! To override the Salesforce1 date picker in your Visualforce (VF) page, you can follow these simplified steps:
Create a Visualforce Page: Create a new Visualforce page or edit an existing one where you want to customize the date picker.
Use <apex:input> with type="date": Replace the standard date field input with an <apex:input> tag with type="date" attribute to create an HTML5 date input field:
htmlCopy code
<apex:page standardController="YourObject__c"> <apex:form> <apex:inputField value="{!YourObject__c.DateField__c}" type="date" /> </apex:form> </apex:page>
This will render a date input field that utilizes the browser's native date picker.
Mobile Responsiveness: Ensure that the custom date picker is mobile-friendly and responsive. Test your VF page on the Salesforce1 mobile app to ensure it works well on mobile devices.
This simplified approach leverages the browser's built-in date picker and eliminates the need for custom JavaScript code. It provides a straightforward way to override the Salesforce1 date picker for date fields in your Visualforce page (https://mlinjectors.com/)s.