Is it possible to convert gettime() into Date and Time?
#7

Код:
getdateEx(bool:t=true){
  new
    y,m,d,
    r[t?9:11];
  getdate(y,m,d);
  t?format(r,9,"%d",d+100*m+10000*y):format(r,11,"%04d/%02d/%02d",y,m,d);
  return r;
}
or
Код:
getdateEx(){
  new
    y,m,d;
  getdate(y,m,d);
  return d+100*m+100000*y;
}
Choose u like.

Edit1: 'd re-read ur post, I just found I was doing wrong thing :{
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)