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

Date formatting in DB2.


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

Active User


Joined: 05 Jun 2005
Posts: 165
Location: Bangalore

PostPosted: Mon Mar 24, 2008 8:47 am
Reply with quote

i ve got a requirement for my project to format a date in the following manner using DB2 Query.

24.03.2008 => MONDAY, 24 MARCH, 2008

can anyone please help me on it?
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Mon Mar 24, 2008 9:31 am
Reply with quote

Try with Date functions...
Back to top
View user's profile Send private message
the_gautam

Active User


Joined: 05 Jun 2005
Posts: 165
Location: Bangalore

PostPosted: Mon Mar 24, 2008 11:54 am
Reply with quote

i know that i ve to do it using the date functions however, i dont know any date function to get the days of the week like sunday, monday...
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Mon Mar 24, 2008 4:04 pm
Reply with quote

Please visit these links for info about Date functions.

www.ibm.com/developerworks/db2/library/techarticle/0211yip/0211yip3.html
www.tizag.com/sqlTutorial/sqldate.php
Back to top
View user's profile Send private message
sri_mf

Active User


Joined: 31 Aug 2006
Posts: 218
Location: India

PostPosted: Tue Mar 25, 2008 12:10 pm
Reply with quote

Quote:

www.tizag.com/sqlTutorial/sqldate.php


Really a gud one gnanas..Thank u icon_biggrin.gif
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 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
No new posts Need help on formatting a report DFSORT/ICETOOL 14
Search our Forums:

Back to Top