Click here to Skip to main content
15,887,416 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Using Bartender unable to get the date format n this format yyyyMMdd (2021MR29).
If I use this it gives me 20210529. I am here to ask for assistance.

What I have tried:

Tried the data type custom date format doesn't work.
Posted
Updated 28-May-20 5:20am
Comments
Maciej Los 28-May-20 11:08am    
And what output you expect to get - "20200329"?

1 solution

Try yyyyMMMdd as format, which would lead to 2021May29. MR isn't a valid month name abbreviation, and there does not seem to exist any format specifier which would lead to an abbreviated month name to only 2 characters.
MMM would yield Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec respectively.
 
Share this answer
 
Comments
Maciej Los 28-May-20 14:45pm    
Good point!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900