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 All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts Sort card to know that creation date ... DFSORT/ICETOOL 10
No new posts Help with SORT - I need to validate d... DFSORT/ICETOOL 11
No new posts Date format correction using dfsort DFSORT/ICETOOL 3
No new posts Sorting Date Field DFSORT/ICETOOL 4
Search our Forums:


Back to Top