Date Formatting [message #612109] |
Sat, 12 April 2014 02:49 |
|
vipul.gupta2
Messages: 6 Registered: April 2014 Location: India
|
Junior Member |
|
|
I have Date in YYYY-MM-DD format. I want to print date in different Block
For example Year 2014 must be print as 2 0 1 4 in four different fields. same for the month and day also.
|
|
|
|
|
Re: Date Formatting [message #612114 is a reply to message #612112] |
Sat, 12 April 2014 03:11 |
|
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
I don't know, I don't use BI Publisher. I *hope* it supports SUBSTR, and that's all you need. You'd just rewrite it as
select substr(c_year, 1, 1) first_digit,
substr(c_year, 2, 1) second_digit,
substr(c_year, 3, 1) third_digit,
substr(c_year, 4, 1) fourth_digit
from your_table or evenfirst_digit := substr(c_year, 1, 1);
second_digit := substr(c_year, 2, 1);
etc.
[Updated on: Sat, 12 April 2014 03:12] Report message to a moderator
|
|
|