ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Date casting issue

Post new topic  Reply to topic
 Date casting issue « View previous topic :: View next topic » 
Author Message
premji
PostPosted: Fri Aug 28, 2015 8:39 am    Post subject: Date casting issue Reply with quote

Acolyte

Joined: 01 Jul 2013
Posts: 64

Hi All,

I am facing date format issue, can any one please advise me how can I format these dates. I getting parsing error for this below example.


CAST( '08:11:2014 22:12:02 EST' AS DATE FORMAT 'YYYY-MM-DDTHH:MM:SS');
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Aug 28, 2015 8:46 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

That's because the format clause doesn't even slightly match the string.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Aug 28, 2015 8:46 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I'm sure the parsing error would be helpful.

I'm sure a small bit of manually matching your value to your pattern would also be helpful.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
smdavies99
PostPosted: Fri Aug 28, 2015 8:58 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Vitor wrote:
That's because the format clause doesn't even slightly match the string.


And there is a whole section in the Info Centre dedicated to all the different Cast formats that are relevane to DATE, TIME and TIMESTAMP Variable types along with examples.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Aug 28, 2015 9:31 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

smdavies99 wrote:
Vitor wrote:
That's because the format clause doesn't even slightly match the string.


And there is a whole section in the Info Centre dedicated to all the different Cast formats that are relevane to DATE, TIME and TIMESTAMP Variable types along with examples.



_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Date casting issue
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.