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

Date conversion from character

Former Member
0 Likes
594

Hi all

i am having date in variable which is charter data type. i tried to save it in a varible which is data type of D. while moving to this date field it is not moved in correct date formate.how can i move it in a date formete from character data type to Date field.

3 REPLIES 3
Read only

Former Member
0 Likes
560

Hi,

Since you have ur data in a char variable, try to use the string functionalities to get ur data in the format of YYYYMMDD. Then try moving the data to the variable of type D.

This would surely get you the expected result.

<REMOVED BY MODERATOR>

Kiran S

Edited by: Alvaro Tejada Galindo on Feb 26, 2008 2:25 PM

Read only

JozsefSzikszai
Active Contributor
0 Likes
560

hi Joe,

the date format has the following format internally: YYYYMMDD. This means your character variable has to be the same format, like 20080226 for today. Otherwise you won't be able to move the value.

hope this helps

ec

Read only

Former Member
0 Likes
560

Hi,

Your character variable format should be YYYYMMDD, then it will work.