• Aman Gupta 74
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi All,

Visual Force Code:
<apex:input type="date" value="{!date}" styleclass="myStyle"/>

Apex Class Code:
public String date{get;set;}

public string getdate() {
            return date;
        }
    
 public void setdate(string date) {
            this.date= date;
        }

NOTE: I have tried using Date datatype as well instead of string, still unable to get the selected value of date from VF page in Apex Class.

Kindly, help.
Thank!
Aman