set current date to textbox in asp.net code example Example: set current date to textbox in asp.net DateTime. Today. ToString("yyyy/MM/dd");