My own date format - how to?

Ramzess II

Registered User.
Local time
Today, 02:55
Joined
Apr 7, 2004
Messages
32
Hello there!

I got such problem - in Latvia where I live we have 7 cases for nouns.

What I need is to output a date in such format: dddd", "d". "mmmm
but... the result shown on the screen is "for example "tresdiena, 12. maijs"; instead of this I need "tresdien, 12. maija". So in another words, I neet names of 7 days of the week and 12 months to be displayed in a different case from the one which is used in the default long date format.

In the table this date is stored as simple short date as it must be, since this custom long form is needed only on printouts.

I believe that I need to write a code with lots of If.. ..Then and Else,
but I am not sure how to do it. Maybe there is even a better way to reduce code using something else than If Then and Else.

I appreciate any help and thank you in advance.
 
What about the Replace function?
 
Ok, thank you. I will try that tomorrow. Probably that might work. I will let you know if so.
 
You can build your own procedure to display whatever you specify.

Since I couldn't get all Latvian characters to display properly, created

a nonsensical scheme for test purposes. Days, starting with Sunday

are named OneDay, TwoDay, etc.. Months are OneMon, TwoMon, etc..

I've attached a small A97 sample for you to play with.

HTH - Bob
 

Attachments

Users who are viewing this thread

Back
Top Bottom