java - Converting the required time to UTC -


i have string time in such format: 14:30, , need convert utc correctly make selections database. here code current time in utc:

simpledateformat dateformat = new simpledateformat("yyyy-mmm-dd hh:mm:ss"); dateformat.settimezone(timezone.gettimezone("utc")); system.out.println(dateformat.format(new date())); 
  1. how convert 14:50 utc (not current time), if relates utc+6 timezone?
  2. i'm using sqlite , time('now') in database query. time returned function compared time got in first point?

thank advice.


Comments

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -