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
kcnmaheshkcnmahesh 

Creating a date fielfd in Visualforce Page

Hi...,

 

 

I want to create a date field in visualforce page.

Now i created date field by using Object's field.

Is there any other way to create date fields without using any objects....?

Navatar_DbSupNavatar_DbSup

Hi,

 

You can use JavaScript

<apex:inputText value="{!datee}"  id="d1" onfocus="DynamicDatePicker(this);"  size="20"/>&nbsp;

function DynamicDatePicker(d_id)

{

    DatePicker.pickDate(false,d_id.id,false);

 

}

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

srikanth001srikanth001

it works.... :-)

 

Thank You

Srikanth