Re: dateformat
- From: stian nixia no
- To: "Gtk-list" <gtk-list gnome org>
- Subject: Re: dateformat
- Date: Wed, 9 Mar 2005 05:43:13 +0100 (CET)
> Is there dateformat function in gtk? I have date dd/mm/yyyy and I want
to change to yyyy/yy/dd Mysql format.
> thx
That would be plain playing
void convert(char *dst, const char *src)
{
dst[0]=src[6];
dst[1]=src[7];
dst[2]=src[8];
dst[3]=src[9];
dst[4]='/';
dst[5]=src[3];
dst[6]=src[4];
dst[7]='/';
dst[8]=src[0];
dst[9]=src[1];
dst[10]=0;
}
Stian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]