IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DB2 date functions


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
praveenp4u

New User


Joined: 07 Mar 2005
Posts: 1

PostPosted: Thu May 19, 2005 4:14 pm
Reply with quote

Hi All,

can u pls tell me how char function works.
what are the different format?


is the char function have two parameters
eg: char(current date,start_date)

if so pls explain the same.


Advance thanks for the reply!!!!!!!!
Back to top
View user's profile Send private message
ovreddy

Active User


Joined: 06 Dec 2004
Posts: 211
Location: Keane Inc., Minneapolis USA.

PostPosted: Fri May 20, 2005 2:21 pm
Reply with quote

Hi Praveen,

CHAR function is used to convert various types of data like numbers, date and time to character data.

To convert date or time to character type we need to use 2 arguments as folloows...

CHAR(date/time,'format');

The second argument specifies the format of the date to be converted.

Thanks,
Reddy.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
No new posts Fetch data from programs execute (dat... DB2 3
Search our Forums:

Back to Top