Could you please help me, how can i decide the date format about this date? : 7/6/2019
Do you know some best practices for this issue? I check the format as MM/dd/yyyy and for example if i send a message from America to Europe the date value might change to 6/7/2019 when i open it.
Yes, sometimes, it is quite confusing. So I used to convert the date into text to avoid that.
Here is how I do it. Once it is shown in text, it won't be changed according to the system setting.
Here is how to convert date to text
Hope this helps.
Related
I have various peoples' DOBs. I want to convert them to a format that will serve as their predicted-but-incomplete NY Driver's License expiration date (which is always the person's DOB in some later year). Because (for now) all of the license expiration dates will be sometime before 2030, I would like to essentially chop off the year portion of the DOBs and replace them with "202_" (or if that's not feasible then just "202").
I know how to get Excel to display the DOB without the year, but that isn't helping me so far. My hope had been to use CONCAT to start with that truncated display and then just add "202_" but the date format of the truncated DOB is tripping me up. If I could get Excel to treat the truncated/display DOB as text without Excel converting it to its number version of the whole DOB then that would seem to solve the problem... Or maybe there's another approach I haven't thought of yet?
You can use following formula:
=TEXT(A1,"dd.MM.") & "202_"
Change date format "dd.MM" as you need
Would anyone be so kind to suggest any methods of allowing a change in date while maintaining the time?
So example, Cell A1 has 3-Feb 2020 07:45:00
I would like to format/fix it such that when i enter any other date for example 8-Feb 2020 it will automatically be shown as 8-Feb 2020 07:45:00.
Any help or suggestion is appreciated.
Format Cell on this format as mentioned below.
dd-mm-yyyy "07:45:00"
Screenshot:
I've been struggling with Excel (2016) date formats. I know how to change display formats for dates and cells but the problem I have is the input format for dates. If I input a date as "DD.MM" or "DD.MM.YYYY" it does recognize it as a date but if I input the date as "DD.MM." (with the second dot after the month), Excel does not recognize it as a date anymore. The column in question is formatted as short date.
Is there anything that can be done or is this by-design? If so, it seems really strange as at least in my country it's the official way to write the date containing that second dot after the month number when there is no year included in the date.
I've been searching and Googling for solution but couldn't find anything on this really. I appreciate all comments and help regarding this question!
SUMMARY/TL;DR:
Excel version is 2016, country is Finland and language is finnish
Excel accepts/recognizes these as dates: 12.5 or 30.8
Excel does NOT accept/recognize these as dates: 12.5. or 30.8.
The column in question is formatted as short date
The dot after the month seems to be screwing things up
Why is this happening? Can anything be done?
Kind regards,
Tenttu
Yes, it is/was by design. (Funny enough, my Excel won't allow dots, only dashes (-), so I couldn't even test if "15.8" works)
So, there's a slight chance that the language of Excel (the defaults of time (24 hours or AM/PM), dates (MM/DD or DD/MM), decimals (comma or dot) etc.) wouldn't allow the dot at after the month. Here's an example of a user that has that dot, and wants to get rid of it. So, your system language is a good candidate for why this wouldn't work for you.
However, I realize that the example linked above don't feature a date with a dot at the end. Which could suggest it is rather by design. For example, if I add a dot to a valid date or time, it will result in some #VALUE!-error. And that's because of how Excel is programmed to convert text to a date - and remember, dates are actually just really large numbers. So, adding a dot at the end makes that conversion "impossible". We might think it's as easy as to remove a dot, but in programming, we need to program that explicitly to do that, and I'm leaning towards there is no such operation done during text to date conversion (certainly not on my system, as I get #VALUE!).
One work-around is to strip the ending dot from the date to make it a valid date. So, you can import sheets with dates with dots at the end, then strip them away, and you'll be good to go!
I am trying to convert a datetime string such as 2015-11-01-02.02.38.444000 to Datetime format in Excel. I have tried solutions provided in previous questions, but this particular format was not covered. I am looking to have both date and time in the same cell. Please assist.
It depends how consistent the strings are, but for this particular one you could try
=VALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-"," ",3),".",":",1),".",":",1))
then use custom formatting to show it as a datetime value with milliseconds
dd/mm/yyyy hh:mm:ss.000
(you may have to change this for your locale).
BTW to make the TIMEVALUE formula in your comment work you would have to change the first two decimal points to colons.
As the title asks, I want to format today's date into mmddyy ina variable for a macro to make saving a file easier. So since today's date is August 14, 2015 I want the variable to read 081415.
VBA equivalent is format. See here.
=Format(Date,"mmddyy")
You should also consider being vary careful when handling dates depending on your location.
A constant problem I had in the UK was excel trying to as usual help and insisting on interpreting some dates as US.
For example
1st August 2015 you would expect 010815 in the UK.
However excel would regularly give 080115 formatting as though it was US.
To be completely sure of the correct date, you should be explicit with the date eg.
format(dateserial(year(now()),month(now()),day(now())),"mmddyy")