On 30/7/03 2:18 PM, in article bg7guu$b7j$1@forums.macromedia.com, "JemJam"
<webforumsuser@macromedia.com> wrote:
> I need to display the current date as dd-mmm-yyyy. Can anyone give me a hand
> with this? The date functions in Lingo do not seem very straightforward.
> Thanks!
The systemDate object will give you the date in a fairly reliable format.
You can use this to display the date in whatever format you require. For
example

today = the systemDate

if today.day < 9 then dayStr = "0" & today.day
else dayStr =String(today.day)

-- month
MonthList = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug",\
"Sep", "Oct", "Nov", "Dec"]
monthStr = MonthList[today.month]

yearStr = string(today.year)

dateStr = dayStr & "-" & monthStr & "-" & yearStr

Hope this helps,

Luke


--------------------------------
| [url]www.meccamedialight.com.au[/url] |
| [url]www.lingoworkshop.com[/url] |
--------------------------------