Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ここでは、1 つの文字列値があり、フロントエンド (C#) から0515表示したいと考えています。1505
0515
1505
誰でも何か考えがありますか?
String Str1 = ds.table[0].rows[a][5];
私からStr1取得して0515いますが、として表示したいです1505。
Str1
string temp = ds.table[0].rows[a][5]; string Str1 = temp.Substring(2) + temp.Substring(0, 2);
連結文字列を使用せずにこれを行う別の方法は次のとおりです。
string Str1 = string.Format("{0}{1}", s1.Substring(2), s1.Substring(0, 2));