Guest User

Untitled

a guest
Aug 10th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Retrieve format of date from date value
  2. DateTime result;
  3.  
  4. if (DateTime.TryParse(value, out result))
  5. {
  6. // use result here
  7. }
  8.  
  9. select Convert(varchar(10),StartDate,103) as StartDateformat from table where filtername=@filtername
  10.  
  11. DateTime todateformat = Convert.ToDateTime(txttodate.Text.Trim());
  12.  
  13. string startdate = todateformat.ToString("dd/MM/yyyy hh:mm:ss");
Add Comment
Please, Sign In to add comment