Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

datatype - Floating points

Former Member
0 Likes
504

Hi Guru's,

how do i convert a date to a floating point?

tnx....

3 REPLIES 3
Read only

Former Member
0 Likes
469

is your requirement is to convert the date in to dd.mm.yyyy or any of these formats??

Edited by: Bhargava TC on Jun 26, 2009 4:06 PM

Read only

0 Likes
469

yes converting yyyy.mm.dd to a floating point 0.000000000000000E+00

Read only

0 Likes
469

hi,

try this way

data: g_date(5),

l_date type f.

Move your date value to g_date.

eg: g_date = (yyyy.dd).

repalce '.' with ' ' into g_date.

condense g_date no-gaps.

l_date = g_date.

l_date is of floating type.

Hope this will help you.

Regards,

Bhargav

Edited by: Bhargava TC on Jun 26, 2009 4:42 PM