Date Display In MM/dd/yyyy
posted 15 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I Want To Conert Date Into Format MM/dd/yyyy. I Write Code But After Executing t Displays The Date In Long Date Format.
The Code Written By Me Is...
Please Suggest What Is Wrong....
The Code Written By Me Is...
Please Suggest What Is Wrong....
posted 15 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
See, what does "dateFormat1" string prints ?
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
posted 15 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Thank's For Reply
It Is Right. Upto dateFormat1 it prints in string format and in right format. but after pasing it is again converted in long date format. I Don't want that. I Only Want The Date Which Is In String Format As It Is In Date Format Also...
It Is Right. Upto dateFormat1 it prints in string format and in right format. but after pasing it is again converted in long date format. I Don't want that. I Only Want The Date Which Is In String Format As It Is In Date Format Also...
posted 15 years ago
So don't re pass the the "formatted" date string back to the data object agian. Just stop when you formate the date object into the string. What are you doing now is, something like this.
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
kishukishor patil wrote:I Only Want The Date Which Is In String Format As It Is In Date Format Also...
So don't re pass the the "formatted" date string back to the data object agian. Just stop when you formate the date object into the string. What are you doing now is, something like this.
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
posted 15 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
But Want It Into Date. Or Current Date In Formated (MM/dd/yyyy) Form. How Can I Do That...
posted 15 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
You can't have a "Date" object in formated form. Formatter comes when you want to "print" that date object. BTW, what do you want to do with that Date object?
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
posted 15 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I Want To Pass That Date Object To An Setter Method Which has a date as parameter. But I Want To Set That DAte In PreFormatted Form...
posted 15 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Again, no need to format the date object, you can't format the "Data" class, if you still want one, try implementing your own ;) AND you can anytime pass the date object to your setter method, don't worry about its format
And I repeat,
And I repeat,
Formatter comes when you want to "print" that date object
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
posted 15 years ago
Since Date objects don't have any notion of a format -as Sagar pointed out- you'll need to pass a formatted String, or create the formatted string from the Date object where you actually need it.
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I Want To Set That DAte In PreFormatted Form...
Since Date objects don't have any notion of a format -as Sagar pointed out- you'll need to pass a formatted String, or create the formatted string from the Date object where you actually need it.
| Attractive, successful people love this tiny ad: The new gardening playing cards kickstarter is now live! https://www.kickstarter.com/projects/paulwheaton/garden-cards |










