daily pastebin goal
33%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top