Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #6265 > unrolled thread

ReportPro Date Format

Started byPaulo Oliveira <paulo@clipinfor.com>
First post2013-11-21 04:32 -0800
Last post2013-11-22 01:39 -0800
Articles 4 — 3 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  ReportPro Date Format Paulo Oliveira <paulo@clipinfor.com> - 2013-11-21 04:32 -0800
    Re: ReportPro Date Format D.J.W. van Kooten <public@ic2remove.this.com> - 2013-11-21 16:47 +0100
    Re: ReportPro Date Format "Jamal" <jamal@examples.net> - 2013-11-21 14:06 -0500
    Re: ReportPro Date Format Paulo Oliveira <paulo@clipinfor.com> - 2013-11-22 01:39 -0800

#6265 — ReportPro Date Format

FromPaulo Oliveira <paulo@clipinfor.com>
Date2013-11-21 04:32 -0800
SubjectReportPro Date Format
Message-ID<199ee2a4-dbb8-4751-97c1-7cc71b73d245@googlegroups.com>
Hi all,

how can i assign a date format in reportpro?
I have dates like dd/mm/yyyy and i want display in the format yyyy/mm/dd, add a picture in the field of reportpro don't make any change.
I use the picture "YYYY/MM/DD".

Any suggestion?

TIA
Paulo Oliveira

[toc] | [next] | [standalone]


#6266

FromD.J.W. van Kooten <public@ic2remove.this.com>
Date2013-11-21 16:47 +0100
Message-ID<oias89h687bi4nkc1m938okd2mhhd5nc08@4ax.com>
In reply to#6265
On Thu, 21 Nov 2013 04:32:24 -0800 (PST), Paulo Oliveira
<paulo@clipinfor.com> wrote:

Hello Paulo,
>
>how can i assign a date format in reportpro?
>I have dates like dd/mm/yyyy and i want display in the format yyyy/mm/dd, add a picture in the field of reportpro don't make any change.
>I use the picture "YYYY/MM/DD".

It seems indeed  that -unlike with numbers- ReportPro doesn't do
anything with a picture in a date field. It just uses the VO  setting
(e.g. when you use 	SetDateCountry(American) you get the American
date in ReportPro too).

Otherwise you can probably create a variabele and construct the date
there as you would like to see  it.

Dick

[toc] | [prev] | [next] | [standalone]


#6267

From"Jamal" <jamal@examples.net>
Date2013-11-21 14:06 -0500
Message-ID<l6llio$b1c$1@speranza.aioe.org>
In reply to#6265
Hi Paul,

Try the built-in XForm() function

XForm( <xValue>, <cPicture>)   ---> cFormattedString

HTH,
Jamal


"Paulo Oliveira"  wrote in message 
news:199ee2a4-dbb8-4751-97c1-7cc71b73d245@googlegroups.com...

Hi all,

how can i assign a date format in reportpro?
I have dates like dd/mm/yyyy and i want display in the format yyyy/mm/dd, 
add a picture in the field of reportpro don't make any change.
I use the picture "YYYY/MM/DD".

Any suggestion?

TIA
Paulo Oliveira 

[toc] | [prev] | [next] | [standalone]


#6270

FromPaulo Oliveira <paulo@clipinfor.com>
Date2013-11-22 01:39 -0800
Message-ID<4d564c2e-53d7-43cf-8547-f6e0a7f10531@googlegroups.com>
In reply to#6265
Hi,

Problem solved

i add a new function to my ClipRpFuncs.
FUNCTION DataYYYYMMDD(dData)
LOCAL cData AS STRING
LOCAL cFormatoData AS STRING
cFormatoData:=GetDateFormat()
SetDateFormat("YYYY-MM-DD")
cData:=DToC(dData)
SetDateFormat(cFormatoData)
RETURN cData

Thanks to all
Paulo Oliveira

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web