4
Answers

custom date time !

Subin Thomas

Subin Thomas

5y
684
1
i have 2 drop month and year ddlmoth and ddl year 
 
i want date time as (current day - ddlmonth - ddlyear) 
 
for eg 02-05-2019
 
05 and 2019 will be dropdown selected and 02 will be the current day of the system.
 
i had tried  
 
 
  1. Datetime date = new Datetime(year , month, currentday)  
 but it is giving error as unrecognise time 
Answers (4)