[RESOLVED] Strings cause arduino to crash :(

PaulS:

I basically need to create 12 letter string or char array that will contain date taken from time.h library in format like: "Jan 01, 2012".

char dateString[16];

int day = 1;
int year = 2012;
char *month = "Jan";
sprintf(dateString, "%s %02d, %d", month, day, year);

PaulS, Arrch thank you so much!!!
I will give it a try!
Nick, sorry about that, I didn't notice that :slight_smile: Thanks for letting me know about the bug!

Edit: It totally works, you guys rock, thanks so much!!! :slight_smile:

sprintf(dateString, "%s %02d, %d ",monthShortStr(month()),day(),year());