Gigaman
10th January 2006, 12:03
We are a Baan 5.0c user in China. We Chinese used to see date format as year-month-day. But I suppose the system only support day-month-year. Is it right?
Another question. We can define unit format as ZZZZZVT9999, for example. What is the rule in date format? Or the rule does not exist at all. I tested as YYYYMMDD, but failed.
Any reply will be highly appreciated. Thank you.
Jason.
bdittmar
10th January 2006, 12:51
We are a Baan 5.0c user in China. We Chinese used to see date format as year-month-day. But I suppose the system only support day-month-year. Is it right?
Another question. We can define unit format as ZZZZZVT9999, for example. What is the rule in date format? Or the rule does not exist at all. I tested as YYYYMMDD, but failed.
Any reply will be highly appreciated. Thank you.
Jason.
Hello create the date format:
ttadv4180m000 single-occ (1) Form 1-1
+------------------------------------------------------------------------------+
| Maintain Date Formats |
|------------------------------------------------------------------------------|
| |
| Date Format : 002 |
| Description : Day, Month, Year (Gen. 10 pos) |
| Day Name : None |
| Day Number : In month |
| |
| Week Number : None |
| |
| Month Name : None |
| Month Number : Number |
| Year Number : With century |
| |
| Separator Indicator : Language Separator |
| Separator : |
| Zero Fill : Ja |
| Length : 10 |
| Input Month Number/Week Number : Month number |
| Auswahl: .. |
+------------------------------------------------------------------------------+
Regards
lakoon
13th January 2006, 16:09
Hello Gigaman
To do it on application level use the session Bernd sugested.
In a program script you have various possibilities.
One of the would be the function sprintf$ (http://www.baanboard.com/programmers_manual_baanerp_help_functions_formatting_io_sprintf). Look at the programmers manuals or look into the WIKI on this Board
/lakoon
Gigaman
15th January 2006, 09:10
bdittmar,
Thank you for your reply. I know your meaning. I know the date format setting screen either. But I think,
1. we can set several date formates in the screen, but we cannot set a format like year-month-day. All formats we can set there are limited in Day-Month-Year. Is it right?
2. except set date format code, weather there is way to write format directly?
Rita Kotecha
16th January 2006, 08:51
Hi,
Please try the following
string result(80)
result = sprintf$("UTC: %u(%04Y-%02m-%02d)", utc.num())
message("%s",result)
wiggum
16th January 2006, 12:14
To change the date format you have to change it in session ttaad1510m000 (Languages)