PDA

View Full Version : Trying to retrieve day and month


crazie.eddie
4th April 2007, 08:41 AM
I'm running WM5 on a Treo 700wx and I'm trying to make my own little app, using Mortscript, to display the date on the carrier logo field. I've gotten as far as using:

GetTime dat, "m d, Y"

which will display in the format of 04 04, 2007

I would like to display the day name and the month name also, so it would look like this...

Wednesday, April 04, 2007

I figured out how to write the info into the carrier logo field, except I can't figure out how to retrieve and display the day name and month name.

So can I get some help please?

Thank you.

crazie.eddie
5th April 2007, 10:51 AM
I figured it out. In the current release of Mortscript, the month can only be retrieved in numerical format. The day of week is the same. So I created a routine that will do the following:

if Week = 0 then WeekDay=Sunday

The month is also retrieved by a similar method:

if Month = 1 then MonthName=January

mmoonsamy
30th April 2007, 02:43 PM
I'm running WM5 on a Treo 700wx and I'm trying to make my own little app, using Mortscript, to display the date on the carrier logo field. I've gotten as far as using:

GetTime dat, "m d, Y"

which will display in the format of 04 04, 2007

I would like to display the day name and the month name also, so it would look like this...

Wednesday, April 04, 2007

I figured out how to write the info into the carrier logo field, except I can't figure out how to retrieve and display the day name and month name.

So can I get some help please?

Thank you.


have you tried GetTime dat, "dddd, MMMM dd, YYYY"