Its ok i found i can do this by using the statement timevalue and datevalue.
Correct. You don’t ever want to store formatting of the data in the database. Store just the value and deal with the formatting when the data is returned to the client application. This way if the formatting ever needs to change you don’t have to modify all your data.