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

How to format a date like this

Hello All, How to format a date 

RajSaha__0-1602007731106.png

Now I'm able to achieve 

RajSaha__1-1602008124196.png

 


 

2 ACCEPTED SOLUTIONS

Accepted Solutions
MikeScott
Helper I
Helper I

You could try to use an HTML text object instead. Using that and inline CSS you might be able to get that to work how you want. Alternately you could just use multiple boxes and make them borderless with no fill.

 

I have gotten text to rotate 90 degrees using an HTML text box in PowerApps so that makes me think its possible.

View solution in original post

RandyHayes
Super User
Super User

@Anonymous 

 

Consider using an HtmlText control. 

Set the Fill color to : RGBA(64,64,64,1)

Set the Font to Arial Size 18

Set the HtmlText formula to the following:

With({theDate: Now()},
"<div style='text-align:center;background:#404040;'>
    <span style='font-size:xx-large;color:snow'>" & Text(theDate, "[$-en-US]d") & "</span><br>
    <span style='font-size:large;color:snow'>" & Text(theDate, "[$-en-US]dddd") & "</span><br>    
    <span style='font-size:smaller;color:yellow'>" & Text(theDate, "[$-en-US]mmm, yyyy") & "</span>
    </div>"
)

Substitute Now() in the formula above to the Date you want (or date field).

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

4 REPLIES 4
VijayTailor
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

You can FOrmate like below.

Text(Today(),"[$-en-US]dd dddd mmm yyyy")

VijayTailor_0-1602012822134.png

Thanks,

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay

MikeScott
Helper I
Helper I

You could try to use an HTML text object instead. Using that and inline CSS you might be able to get that to work how you want. Alternately you could just use multiple boxes and make them borderless with no fill.

 

I have gotten text to rotate 90 degrees using an HTML text box in PowerApps so that makes me think its possible.

RandyHayes
Super User
Super User

@Anonymous 

 

Consider using an HtmlText control. 

Set the Fill color to : RGBA(64,64,64,1)

Set the Font to Arial Size 18

Set the HtmlText formula to the following:

With({theDate: Now()},
"<div style='text-align:center;background:#404040;'>
    <span style='font-size:xx-large;color:snow'>" & Text(theDate, "[$-en-US]d") & "</span><br>
    <span style='font-size:large;color:snow'>" & Text(theDate, "[$-en-US]dddd") & "</span><br>    
    <span style='font-size:smaller;color:yellow'>" & Text(theDate, "[$-en-US]mmm, yyyy") & "</span>
    </div>"
)

Substitute Now() in the formula above to the Date you want (or date field).

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
Anonymous
Not applicable

Thank you so much:)

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,270)