- to_char({datecreated}, 'DAY') returns the day of the week that this date was (MONDAY, TUESDAY, etc.)
- to_char({datecreated}, 'D') will return the day of the week numeric (1-7).
- case when to_char({datecreated}, 'D') = 2 then 1 else 0 end will return 1 if Date Created was Monday and 0 for all other days of the week.
If these will be used in a search, Formula (Text) field should be used.
For a full list of input masks check online resources for the Oracle to_char function. Here is are a couple of external links that may be useful:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions180.htm
No comments:
Post a Comment