Hi Vijay, On 10/2/19 10:11 PM, Vijay Kiran Kamuju wrote: > + if(mstm->tm_mday > 0 && mstm->tm_mday < 10) > + str[ret-2] = ' '; It's not working if alternate is set. I thought about something like: if (!alternate && str[ret-2] = '0') Thanks, Piotr