Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8927

Re: Need to trim space from time field

$
0
0

Hi,

 

What is the data type of your database fields for times?

If those are of type datetime, then you can use cStr(<your database field>, "hh:mm AM"), which will give you the time part as required by you and can try something like this:

 

cStr(<your database field for early shift time>, "hh:mm AM") & '-' & cStr(<your database field late shift time>, "hh:mm AM")

 

 

Thanks,

Raghavendra


Viewing all articles
Browse latest Browse all 8927


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>