Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in .NET only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
.NET
asp.net using vb dateformat setting
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
chinni1
New Member
Join Date:
Nov 2008
Posts:
24
#1
asp.net using vb dateformat setting
Nov 11 '08, 06:29 AM
Payment_Date
04.11.2008
00:00:00
im getting like this.I don't want disply 00.00.00.
plz give me suggestion
joedeene
Contributor
Join Date:
Jul 2008
Posts:
579
#2
Nov 11 '08, 12:04 PM
What does your code look like to return the date format? You can always remove the last line of your string, or last couple of characters you don't want.
And are you just getting the 00:00:00 returned? Or all three lines?
joedeene
Comment
Post
Cancel
DrBunchman
Recognized Expert
Contributor
Join Date:
Jan 2008
Posts:
979
#3
Nov 11 '08, 04:16 PM
You could use the ToShortDateStri ng function like this:
Code:
Date.Parse(strDate).ToShortDateString()
Hope this helps,
Dr B
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment