Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I want to display today's Date in the text box in the format e.g. WEDNESDAY, 18th Feb 2015
Please help me out
good idea sunindia!
small change
=Date(Today(), 'WWWW, DD') &
Pick(wildmatch(Day(Today()),
1,21,31,
2,22,
3,23,
'*'),
'st ', 'st ', 'st ',
'nd ', 'nd ',
'rd ', 'rd ',
'th '
)
& Date(Today()+v, 'MMM YYYY')
You could use this in your text box:
=WeekDay(Today()) &', '&Date(Today(),'DD MMM YYYY')
You will also have to change your DayNames variable in the load script to this:
SET DayNames='Monday;Tuesday;Wednesday;Thursday;Friday;Saturday;Sunday';
Try this:
=Date(Today(), 'WWWWWW DD MMM YYYY')
Best,
S
Or another alternative:
=Date(Today(), 'WWWW, DD') & 'th ' & Date(Today(), 'MMM YYYY')
HTH
Best,
S
Having 'th' will induce 1th, 2th, 3th, etc... You'll need more logic if you use that approach.
=Date(Today(), 'WWWW') &','& Date(Today(),'dd') &'th '& Date(Today(),'MMM YYYY')
Smart thinking Chris. I did not think about it.
I guess we can use a Match function to determine 'st' or 'th' or any other, may be.
Best,
S
My bad, not the match function, but the Pick function:
=Date(Today(), 'WWWW, DD') &
Pick(Day(Today()), 'st ', 'nd ', 'rd ',
'th ', 'th ', 'th ', 'th ', 'th ', 'th ', 'th ', 'th ', 'th ', 'th ', 'th ', 'th ', 'th ', 'th ', 'th ', 'th ', 'th ',
'st ', 'nd ', 'rd ',
'th ', 'th ', 'th ', 'th ', 'th ', 'th ', 'th ',
'st ')
& Date(Today(), 'MMM YYYY')
Best,
S
good idea sunindia!
small change
=Date(Today(), 'WWWW, DD') &
Pick(wildmatch(Day(Today()),
1,21,31,
2,22,
3,23,
'*'),
'st ', 'st ', 'st ',
'nd ', 'nd ',
'rd ', 'rd ',
'th '
)
& Date(Today()+v, 'MMM YYYY')
Very nice. I like the collaboration we have went through within this post.
Thanks for proposing further simplification of the expression.
Best,
S