Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date format
Message
From
02/12/2000 11:06:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
02/12/2000 10:50:49
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00447894
Message ID:
00448498
Views:
8
>Hi Dear,
>
>I want to use date format as
>01-DEC
>
>whereas i have set the date format to british but the short date format is needed just for one text box in Report and i don't want to chage overall date format.
>
>Nafees

Mohammed,
You could change the textbox's field expression. ie: say it's myDateField

padl(day(myDateField),2,'0')+'-'+upper(left(cmonth(myDateField),3))

For the second part you might need to call a UDF or array element to override localized lang.

dimension mycMonth[12]
mycMonth[1]='JAN'
...
mycMonth[1]='DEC'

*report expr
padl(day(myDateField),2,'0')+'-'+mycmonth[month(myDateField)]

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform