<asp:ListBox ID="lbxTime" runat="server" Height="40" Width="100" SelectionMode="Multiple"></asp:ListBox>private void Popuatelistbox() { DateTime dTime = DateTime.Today; do { lbxTime.Items.Add(new ListItem(dTime.ToString("h:mm tt"), dTime.ToString("h:mm tt"))); dTime = dTime.AddMinutes(15); } while (dTime.Day == DateTime.Today.Day); }
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: