Skip to main content
12 events
when toggle format what by license comment
Dec 29, 2016 at 8:13 comment added Amit Bisht Life saving solution
Jan 30, 2015 at 8:42 comment added TomB Escaping the format string using backslash does also work: DateTime.Now.ToString("dd\\/MM\\/yyyy");
Dec 17, 2014 at 10:02 comment added Yanker Another method I've encountered is : string.Format("{0:dd/MM/yyyy}", DateTime.Now) Only problem is that it doesn't always work. Worth trying though
Mar 7, 2014 at 8:46 comment added Bitterblue @DanielA.White There are countries that have more lefties than right handers ? I mean when I think about a slash with a sword (right hander normal) it makes a / :)
Jan 30, 2014 at 7:03 history edited shashwat CC BY-SA 3.0
fixed code mistake
Jul 17, 2013 at 6:46 review Suggested edits
Jul 17, 2013 at 6:47
Jun 18, 2013 at 16:50 comment added russau MSDN reference: msdn.microsoft.com/en-us/library/8kb3ddd4.aspx#dateSeparator
Nov 26, 2012 at 15:22 comment added base2 You could also use this format: dateTime.ToString(@"yyyy\/MM\/dd")
Jun 14, 2011 at 12:31 vote accept Diskdrive
Jun 14, 2011 at 12:23 history edited Bojan Bjelic CC BY-SA 3.0
It's actually slash, not backslash, but I meant the character
Jun 14, 2011 at 12:19 comment added Daniel A. White @spender - in some cultures they are.
Jun 14, 2011 at 12:17 history answered Bojan Bjelic CC BY-SA 3.0