Author Topic: Date format  (Read 4045 times)

drChaos

  • Guest
Date format
« on: March 04, 2007, 03:56:58 pm »
I want to print current date in format MM/DD/YYYY.
I have tried to write embed script.
Code
local curDate;
date(time(),curDate);
print(curDate.month+"//"+curDate.day+"//"+curDate.year);

But it gives me an error : "The index date does not exist."
I think that standard Sqirrel lib "system" didn't link and I guess why :).
But how I can take date or how can I change the date output format?
« Last Edit: March 04, 2007, 04:06:46 pm by drChaos »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Date format
« Reply #1 on: March 04, 2007, 05:36:45 pm »
Quote
I think that standard Sqirrel lib "system" didn't link

That's right, we haven't enabled squirrel's std lib yet...
Be patient!
This bug will be fixed soon...

drChaos

  • Guest
Re: Date format
« Reply #2 on: March 09, 2007, 10:44:57 pm »
Quote
I think that standard Sqirrel lib "system" didn't link

That's right, we haven't enabled squirrel's std lib yet...

And what should I do? I havn't any funtion that can give me date/time in any format.