Hello, im facing date and time problem. I want get a time in Date Type, with this format HH:mm:SS
i try to get new Date(), then format it as String. Then i use substring to get the time. Then i parse it as Date Type, and want to save it in database(databa se has a field called start_time, which is Date Type)
After i do this transaction and check with database, database show "1970-01-01 17:12:00".....C an anyone help me on that?Thanks in advanced
i try to get new Date(), then format it as String. Then i use substring to get the time. Then i parse it as Date Type, and want to save it in database(databa se has a field called start_time, which is Date Type)
After i do this transaction and check with database, database show "1970-01-01 17:12:00".....C an anyone help me on that?Thanks in advanced
Comment