Visualforce Datepicker Manipulation and Day of Week Display

18 Dec

datepicker with past years and no date link

Hide the Datepicker Link for the Current Date

Show Years Before the Current Year in a Datepicker

Development would be a lot harder without stackexchange and stackoverflow. Thanks for this post that illustrated how to do this.
http://salesforce.stackexchange.com/questions/7944/standard-datepicker-year-values

Show a Datepicker on a Text Field

Thanks to these sources for the help figuring this out.
DeveloperForce Boards
Infallibletechie.com

Show the Day of Week When a Date is Selected

The day of week is found by converting the input date into a datetime. Then we use the format method to give us the day of the week spelled out.

day of week spelled out

Code Examples

The examples below show how to remove the date link, show prior years in the datepicker, and add a datepicker to an field.

ExamplePageController.cls

ExamplePage.page

One Reply to “Visualforce Datepicker Manipulation and Day of Week Display”

Comments are closed.