It has a set timezone method:
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
simpleDateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
Date myDate = simpleDateFormat.parse(rawQuestion.getString("AskDateTime"));
all done!
More Related Contents:
- Convert UTC into Local Time on Android
- DateFormat parse – not return date in UTC
- Android get Current UTC time [duplicate]
- Android – Code is not working to set text of EditText to bold
- Get image from url and place it in imageview – Android [duplicate]
- How can I disable GPS/WiFi for all Android apps but one I’m crerating?
- Check orientation on Android phone
- decompiling DEX into Java sourcecode
- Android/Java – Date Difference in days
- Android Studio Gradle project “Unable to start the daemon process /initialization of VM”
- Android java.lang.VerifyError?
- How set background drawable programmatically in Android
- How do you pass a string from one activity to another? [duplicate]
- Code will only return 0.0, 0.0 GPS coordinate while throwing NullPointerException
- How to catch a Firebase Auth specific exceptions
- How to delete a file on google drive using Google Drive Android API
- Android Microsoft Office Library (.doc, .docx, .xls, .ppt, etc.) [closed]
- Convert base64 string to Image in Java
- How do you simulate low memory in the Android emulator?
- How can I detect a click in an onTouch listener?
- Add object to ArrayList at specified index
- how to properly implement Parcelable with an ArrayList?
- Android: Non-static method cannot be referenced from static context. Confused? [duplicate]
- GPS Android – get positioning only once
- How to add a push notification in my own android app
- How to update edittext whenever a quantity is added in android studio
- Using Sockets to send and receive data
- When may we need to use runOnUiThread in android application?
- What exactly does Android’s @hide annotation do?
- Command failed: gradlew.bat installDebug