cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

I keep getting a weird error with Text() Function

Hi, I am currently trying to use the Text() function to turn a Date (today) into a string in a yyyymmdd format. I currently have:

 

Text(Today();"yyyymmdd")

 

My problem is, whenever I try to type that, it autofills into something weird: Text(Today();"[$-es-419][$-es-419][$-es-419][$-es-419][$-es-419][$-es-419][$-es-419][$-es-419][$-es-419][$-es-419][$-es-419][$-es-419][$-es-419][$-es-419][$-es-419][$-es-419][$-es-419][$-es-419][$-es-419][$-es-419]yyyymmdd")

 

I don't know what it keeps doing that, whenever I try to leave it alone after typing my function, it turns into that. Seems like areally weird bug.

 

 

4 REPLIES 4
SeanHenderson
Impactful Individual
Impactful Individual

Hi @Anonymous 

You should use a , instead of a ;

Text(Today(),"yyyymmdd")

---
Please hit the "Accept as Solution" button if my post answered your question! If my post was helpful please consider giving it a "Thumbs Up."

yashag2255
Dual Super User II
Dual Super User II

Hi @Anonymous 

 

PowerApps adds the format according to the settings configured as per your account.

Can you try to use the below expressions and check if any of them works:

Text(Today();"[$-es-419]yyyymmdd")
Text(Today(),"[$-es-419]yyyymmdd")

Also, regarding using ; or , -> this depends on the regional settings of the PowerApps studio.

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Anonymous
Not applicable

Since I'm using a localized version, using "," instead of ";" gives me an error.

Hi @Anonymous 

 

Have you tried, using Text(Today();"[$-es-419]yyyymmdd")

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,648)