cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
paris
Helper V
Helper V

Transfer Japanese date to western date

Hi All,

I want to change Japanese date to western date format.  Could you please help. (9 is 1 digit while 10 is 2 digits ... so I could not use left function) 

 

21年9月限 → 1/9/2021

21年10月限→ 1/10/2021

 

Month          Price

21年9月限     5

21年10月限   2

21年11月限   4

21年12月限   3

22年1月限     7

22年2月限     6

 

All the best,

Paris

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@paris Was able to get day or month? with this:

MonthNum = MID([Month],4,SEARCH("限",[Month])-5)

@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop! Microsoft Hates Greg's Quick Measures
YouTube Channel! Microsoft Hates Greg
Check out my latest book!

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

@paris Was able to get day or month? with this:

MonthNum = MID([Month],4,SEARCH("限",[Month])-5)

@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop! Microsoft Hates Greg's Quick Measures
YouTube Channel! Microsoft Hates Greg
Check out my latest book!

View solution in original post

Thank you very much! It really helped me to save my time. 

Greg_Deckler
Super User
Super User

@paris Have you tried using Use Locale in Power Query? Right-click column, Change Type, Use Locale. I will give this a shot in an Enter Data query and see what happens, haven't really messed with Japanese language much.


@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop! Microsoft Hates Greg's Quick Measures
YouTube Channel! Microsoft Hates Greg
Check out my latest book!

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors