This topic is locked
[SOLVED]

 Datetime without seconds

8/11/2014 9:29:23 PM
ASPRunnerPro General questions
Y
yahia author

Hello i have a field that shows time ,only time without date

The time is shiwn as HH:MM:SS

But i want to display in list page the format of time like HH:MM i don't need seconds in view and list pages

How to do this?

Thanks

admin 8/12/2014

Try to set 'View as' type of this field to Custom and use the following code:

FormatDateTime(CDate(strValue),4)
Y
yahia author 8/12/2014



Try to set 'View as' type of this field to Custom and use the following code:

FormatDateTime(CDate(strValue),4)



Thanks it works