+ Start a Discussion
a459295360a459295360 

How can I get the js date control for the inputFiled?

I want get a js date control for my inputFiled and I know the salesforce has own js date control ,but I do't  konw hao can I get it,so I hope you can tell me hao to do it, thanks!!!

Best Answer chosen by Admin (Salesforce Developers) 
NaishadhNaishadh

use apex inputfield for your date component. 

All Answers

AishAish

You can create your own text field on which you can put whatever formatting on the visualforce page that field is rendered on, through the JS you choose to use. That JS can be a static resource. Upon save or submit or another user action the data in that text field can then be copied over to the original salesforce field of type date.

NaishadhNaishadh

use apex inputfield for your date component. 

This was selected as the best answer