TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vishal Chaudhari
NA
16
510
Convert Date Time and Decimal to user specific format
Jan 20 2021 11:26 AM
I am writing a function to convert Decimal/Datetime to the format specified by user.
For example:
If my input string is
1234.1254
and format string is "
000.00
" then the output should be
1234.13
.
Same goes for Datetime, if input is DateTime.Now and format string is "
dd/MM/yyyy
" then the date should be returned in the given format.
I am not sure how can I achieve this, any suggestions on how can I proceed here?
Thanks
Reply
Answers (
3
)
Get only the last result
using claim store the userid globally in asp.net core base contoller