DateTime
によって返されたローカル タイムゾーンからDateTime.Now
Utc 以外の別のタイムゾーンに変換するにはどうすればよいですか? デスクトップには がTimeZoneInfo.ConvertTimeBySystemTimeZoneId()
ありますが、Windows phone では利用できません!
このJavaスニペットは、私がやりたいことを大まかに示しています
SimpleDateFormat format = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z", Locale.US);
TimeZone tz = TimeZone.getDefault();
format.setTimeZone(TimeZone.getTimeZone("GMT"));
str = format.format(new Date());