Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
AnswerRe: Global Hotkeys? Pin
Eddy Vluggen25-Feb-15 0:30
professionalEddy Vluggen25-Feb-15 0:30 
AnswerRe: Global Hotkeys? Pin
BillWoodruff24-Feb-15 19:51
professionalBillWoodruff24-Feb-15 19:51 
QuestionDateTime ToString [confused] Pin
V.24-Feb-15 2:19
professionalV.24-Feb-15 2:19 
AnswerRe: DateTime ToString [confused] Pin
GuyThiebaut24-Feb-15 2:43
professionalGuyThiebaut24-Feb-15 2:43 
AnswerRe: DateTime ToString [confused] PinPopular
OriginalGriff24-Feb-15 2:43
mveOriginalGriff24-Feb-15 2:43 
GeneralRe: DateTime ToString [confused] Pin
V.24-Feb-15 2:51
professionalV.24-Feb-15 2:51 
GeneralRe: DateTime ToString [confused] Pin
Rob Philpott24-Feb-15 2:57
Rob Philpott24-Feb-15 2:57 
AnswerRe: DateTime ToString [confused] Pin
F-ES Sitecore24-Feb-15 3:33
professionalF-ES Sitecore24-Feb-15 3:33 
It is generally not the best idea to leave your code to default to regional settings when you are expecting something specific from your results, as you are in this case. You can tell .net to use a specific culture when you do your ToString and you always get the format of that culture.

DateTime.Now.ToString("yyyy/MM", CultureInfo.CreateSpecificCulture("en-GB"));


However given you want a literal slash due to you creating a file path you're better with the escaping example provided in other post as that makes it unambiguous that you need a literal slash, ie for a path.
AnswerRe: DateTime ToString [confused] Pin
Daniel Pfeffer25-Feb-15 2:54
professionalDaniel Pfeffer25-Feb-15 2:54 
QuestionIterate through data table Pin
dattagunturu24-Feb-15 1:39
dattagunturu24-Feb-15 1:39 
AnswerRe: Iterate through data table Pin
manchanx24-Feb-15 2:00
professionalmanchanx24-Feb-15 2:00 
AnswerRe: Iterate through data table Pin
Pete O'Hanlon24-Feb-15 2:03
mvePete O'Hanlon24-Feb-15 2:03 
Questionbest pattern queue Pin
vahidbakhtiary23-Feb-15 21:29
vahidbakhtiary23-Feb-15 21:29 
AnswerRe: best pattern queue Pin
OriginalGriff23-Feb-15 21:40
mveOriginalGriff23-Feb-15 21:40 
AnswerRe: best pattern queue Pin
Pete O'Hanlon23-Feb-15 21:45
mvePete O'Hanlon23-Feb-15 21:45 
AnswerRe: best pattern queue Pin
vahidbakhtiary23-Feb-15 23:07
vahidbakhtiary23-Feb-15 23:07 
GeneralRe: best pattern queue Pin
OriginalGriff23-Feb-15 23:42
mveOriginalGriff23-Feb-15 23:42 
GeneralRe: best pattern queue Pin
vahidbakhtiary24-Feb-15 0:02
vahidbakhtiary24-Feb-15 0:02 
GeneralRe: best pattern queue Pin
OriginalGriff24-Feb-15 0:17
mveOriginalGriff24-Feb-15 0:17 
GeneralRe: best pattern queue Pin
Pete O'Hanlon24-Feb-15 0:30
mvePete O'Hanlon24-Feb-15 0:30 
GeneralRe: best pattern queue Pin
vahidbakhtiary24-Feb-15 0:54
vahidbakhtiary24-Feb-15 0:54 
GeneralRe: best pattern queue Pin
Dave Kreskowiak24-Feb-15 2:42
mveDave Kreskowiak24-Feb-15 2:42 
QuestionPending Status for new Articles Pin
Evil Iceblock23-Feb-15 17:25
Evil Iceblock23-Feb-15 17:25 
AnswerRe: Pending Status for new Articles Pin
Wendelius23-Feb-15 17:37
mentorWendelius23-Feb-15 17:37 
GeneralRe: Pending Status for new Articles Pin
Evil Iceblock23-Feb-15 18:01
Evil Iceblock23-Feb-15 18:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.