Hello Friends
This is my first post.
I am having problems in convetring teh date format.
I have following code.
if(!strcmp(elem entbuf, "depDate"))
{
strncpy((char *)amflightdets[numflights].flightDate, contents, 6);
amflightdets[numflights].flightDate[6] = '\0';
}
I get the value as 180906. (ddmmyy)
I want to change this value to 18SEP (ddMON) . I want to change this in amflightdets[numflights].flightDate varibale .
What are the options I can use .
Thanks in advance..
This is my first post.
I am having problems in convetring teh date format.
I have following code.
if(!strcmp(elem entbuf, "depDate"))
{
strncpy((char *)amflightdets[numflights].flightDate, contents, 6);
amflightdets[numflights].flightDate[6] = '\0';
}
I get the value as 180906. (ddmmyy)
I want to change this value to 18SEP (ddMON) . I want to change this in amflightdets[numflights].flightDate varibale .
What are the options I can use .
Thanks in advance..
Comment