hello, i have date of birth field in a datapage, that need to convert into a text format, then use as number in formula,
for example, if my DOB is 01/22/1999, i need to store the value 01221999 in a different field in the data source table , i have tried the following formula " STR (DATEPART(DD,[@field:Virtual_DOB])) + STR (DATEPART(MM,[@field:Virtual_DOB])) + STR (DATEPART(YYYY,[@field:Virtual_DOB])) ", but i get the result as 01 22 1999, removing the forward slash but apparently still keeping the structure .
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
Ammar
hello, i have date of birth field in a datapage, that need to convert into a text format, then use as number in formula,
for example, if my DOB is 01/22/1999, i need to store the value 01221999 in a different field in the data source table , i have tried the following formula " STR (DATEPART(DD,[@field:Virtual_DOB])) + STR (DATEPART(MM,[@field:Virtual_DOB])) + STR (DATEPART(YYYY,[@field:Virtual_DOB])) ", but i get the result as 01 22 1999, removing the forward slash but apparently still keeping the structure .
thank you for your help, i appreciate it.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.