Subin Thomas

Subin Thomas

  • NA
  • 4.9k
  • 125.9k

custom date time !

Jan 2 2020 3:52 AM
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)